1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: samples/image/canvas.h
3 // Purpose: sample showing operations with wxImage
4 // Author: Robert Roebling
5 // Modified by: Francesco Montorsi
8 // Copyright: (c) 1998-2005 Robert Roebling
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #include "wx/scrolwin.h"
14 //-----------------------------------------------------------------------------
16 //-----------------------------------------------------------------------------
18 class MyCanvas
: public wxScrolledWindow
21 MyCanvas( wxWindow
*parent
, wxWindowID
, const wxPoint
&pos
, const wxSize
&size
);
24 void OnPaint( wxPaintEvent
&event
);
25 void CreateAntiAliasedBitmap();
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
;
41 wxBitmap my_png_from_res
,
44 wxBitmap my_smile_xbm
;
48 wxBitmap my_horse_asciigrey_pnm
;
49 wxBitmap my_horse_rawgrey_pnm
;
51 wxBitmap colorized_horse_jpeg
;
52 wxBitmap my_cmyk_jpeg
;
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
;
66 wxBitmap
*my_horse_ani
;
69 wxBitmap m_bmpSmileXpm
;
70 wxIcon m_iconSmileXpm
;