]> git.saurik.com Git - wxWidgets.git/blob - samples/image/canvas.h
Somehow, setting a tint color makes gauge work :/.
[wxWidgets.git] / samples / image / canvas.h
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 // Copyright: (c) 1998-2005 Robert Roebling
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 #include "wx/scrolwin.h"
12
13 //-----------------------------------------------------------------------------
14 // MyCanvas
15 //-----------------------------------------------------------------------------
16
17 class MyCanvas: public wxScrolledWindow
18 {
19 public:
20 MyCanvas( wxWindow *parent, wxWindowID, const wxPoint &pos, const wxSize &size );
21 ~MyCanvas();
22
23 void OnPaint( wxPaintEvent &event );
24 void CreateAntiAliasedBitmap();
25
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,
41 my_png_from_mem;
42
43 wxBitmap my_smile_xbm;
44 wxBitmap my_square;
45 wxBitmap my_anti;
46
47 wxBitmap my_horse_asciigrey_pnm;
48 wxBitmap my_horse_rawgrey_pnm;
49
50 wxBitmap colorized_horse_jpeg;
51 wxBitmap my_cmyk_jpeg;
52
53 wxBitmap my_toucan;
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;
62
63 int xH, yH;
64 int m_ani_images;
65 wxBitmap *my_horse_ani;
66
67 private:
68 wxBitmap m_bmpSmileXpm;
69 wxIcon m_iconSmileXpm;
70
71 DECLARE_EVENT_TABLE()
72 };