1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: samples/image/canvas.h
3 // Purpose: sample showing operations with wxImage
4 // Author: Robert Roebling
5 // Modified by: Francesco Montorsi
7 // Copyright: (c) 1998-2005 Robert Roebling
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #include "wx/scrolwin.h"
13 //-----------------------------------------------------------------------------
15 //-----------------------------------------------------------------------------
17 class MyCanvas
: public wxScrolledWindow
20 MyCanvas( wxWindow
*parent
, wxWindowID
, const wxPoint
&pos
, const wxSize
&size
);
23 void OnPaint( wxPaintEvent
&event
);
24 void CreateAntiAliasedBitmap();
26 wxBitmap my_horse_png
;
27 wxBitmap my_horse_jpeg
;
28 wxBitmap my_horse_gif
;
29 wxBitmap my_horse_bmp
;
30 wxBitmap my_horse_bmp2
;
31 wxBitmap my_horse_pcx
;
32 wxBitmap my_horse_pnm
;
33 wxBitmap my_horse_tiff
;
34 wxBitmap my_horse_tga
;
35 wxBitmap my_horse_xpm
;
36 wxBitmap my_horse_ico32
;
37 wxBitmap my_horse_ico16
;
38 wxBitmap my_horse_ico
;
39 wxBitmap my_horse_cur
;
40 wxBitmap my_png_from_res
,
43 wxBitmap my_smile_xbm
;
47 wxBitmap my_horse_asciigrey_pnm
;
48 wxBitmap my_horse_rawgrey_pnm
;
50 wxBitmap colorized_horse_jpeg
;
51 wxBitmap my_cmyk_jpeg
;
54 wxBitmap my_toucan_flipped_horiz
;
55 wxBitmap my_toucan_flipped_vert
;
56 wxBitmap my_toucan_flipped_both
;
57 wxBitmap my_toucan_grey
;
58 wxBitmap my_toucan_head
;
59 wxBitmap my_toucan_scaled_normal
;
60 wxBitmap my_toucan_scaled_high
;
61 wxBitmap my_toucan_blur
;
65 wxBitmap
*my_horse_ani
;
68 wxBitmap m_bmpSmileXpm
;
69 wxIcon m_iconSmileXpm
;