]> git.saurik.com Git - wxWidgets.git/blob - samples/image/canvas.h
Add support for custom numeric formats to wxGrid.
[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 // RCS-ID: $Id$
8 // Copyright: (c) 1998-2005 Robert Roebling
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #include "wx/scrolwin.h"
13
14 //-----------------------------------------------------------------------------
15 // MyCanvas
16 //-----------------------------------------------------------------------------
17
18 class MyCanvas: public wxScrolledWindow
19 {
20 public:
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;
41
42 wxBitmap my_smile_xbm;
43 wxBitmap my_square;
44 wxBitmap my_anti;
45
46 wxBitmap my_horse_asciigrey_pnm;
47 wxBitmap my_horse_rawgrey_pnm;
48
49 wxBitmap colorized_horse_jpeg;
50 wxBitmap my_cmyk_jpeg;
51
52 wxBitmap my_toucan;
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;
61
62 int xH, yH;
63 int m_ani_images;
64 wxBitmap *my_horse_ani;
65
66 private:
67 wxBitmap m_bmpSmileXpm;
68 wxIcon m_iconSmileXpm;
69
70 DECLARE_EVENT_TABLE()
71 };