]> git.saurik.com Git - wxWidgets.git/blame - samples/image/canvas.h
move treeentry_gtk.h to include/wx/gtk/private/
[wxWidgets.git] / samples / image / canvas.h
CommitLineData
09ddabf7
FM
1///////////////////////////////////////////////////////////////////////////////
2// Name: samples/image/canvas.h
3// Purpose: sample showing operations with wxImage
4// Author: Robert Roebling
5// Modified by: Francesco Montorsi
6// Created: 1998
7// RCS-ID: $Id$
8// Copyright: (c) 1998-2005 Robert Roebling
526954c5 9// Licence: wxWindows licence
09ddabf7
FM
10///////////////////////////////////////////////////////////////////////////////
11
12#include "wx/scrolwin.h"
13
14//-----------------------------------------------------------------------------
15// MyCanvas
16//-----------------------------------------------------------------------------
17
18class MyCanvas: public wxScrolledWindow
19{
20public:
21 MyCanvas( wxWindow *parent, wxWindowID, const wxPoint &pos, const wxSize &size );
22 ~MyCanvas();
23
24 void OnPaint( wxPaintEvent &event );
25 void CreateAntiAliasedBitmap();
26
27 wxBitmap my_horse_png;
28 wxBitmap my_horse_jpeg;
29 wxBitmap my_horse_gif;
30 wxBitmap my_horse_bmp;
31 wxBitmap my_horse_bmp2;
32 wxBitmap my_horse_pcx;
33 wxBitmap my_horse_pnm;
34 wxBitmap my_horse_tiff;
35 wxBitmap my_horse_tga;
36 wxBitmap my_horse_xpm;
37 wxBitmap my_horse_ico32;
38 wxBitmap my_horse_ico16;
39 wxBitmap my_horse_ico;
40 wxBitmap my_horse_cur;
c3f641cb
VZ
41 wxBitmap my_png_from_res,
42 my_png_from_mem;
09ddabf7
FM
43
44 wxBitmap my_smile_xbm;
45 wxBitmap my_square;
46 wxBitmap my_anti;
47
48 wxBitmap my_horse_asciigrey_pnm;
49 wxBitmap my_horse_rawgrey_pnm;
50
51 wxBitmap colorized_horse_jpeg;
52 wxBitmap my_cmyk_jpeg;
53
54 wxBitmap my_toucan;
55 wxBitmap my_toucan_flipped_horiz;
56 wxBitmap my_toucan_flipped_vert;
57 wxBitmap my_toucan_flipped_both;
58 wxBitmap my_toucan_grey;
59 wxBitmap my_toucan_head;
60 wxBitmap my_toucan_scaled_normal;
61 wxBitmap my_toucan_scaled_high;
62 wxBitmap my_toucan_blur;
63
64 int xH, yH;
65 int m_ani_images;
66 wxBitmap *my_horse_ani;
67
68private:
69 wxBitmap m_bmpSmileXpm;
70 wxIcon m_iconSmileXpm;
71
72 DECLARE_EVENT_TABLE()
73};