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
;
42 wxBitmap my_smile_xbm
;
46 wxBitmap my_horse_asciigrey_pnm
;
47 wxBitmap my_horse_rawgrey_pnm
;
49 wxBitmap colorized_horse_jpeg
;
50 wxBitmap my_cmyk_jpeg
;
53 wxBitmap my_toucan_flipped_horiz
;
54 wxBitmap my_toucan_flipped_vert
;
55 wxBitmap my_toucan_flipped_both
;
56 wxBitmap my_toucan_grey
;
57 wxBitmap my_toucan_head
;
58 wxBitmap my_toucan_scaled_normal
;
59 wxBitmap my_toucan_scaled_high
;
60 wxBitmap my_toucan_blur
;
64 wxBitmap
*my_horse_ani
;
67 wxBitmap m_bmpSmileXpm
;
68 wxIcon m_iconSmileXpm
;