1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxMemoryDC base header
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows Licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_DCMEMORY_H_BASE_
12 #define _WX_DCMEMORY_H_BASE_
15 #include "wx/bitmap.h"
17 //-----------------------------------------------------------------------------
19 //-----------------------------------------------------------------------------
21 class WXDLLIMPEXP_CORE wxMemoryDC
: public wxDC
25 wxMemoryDC( wxBitmap
& bitmap
);
26 wxMemoryDC( wxDC
*dc
);
28 // select the given bitmap to draw on it
29 void SelectObject(wxBitmap
& bmp
);
31 // select the given bitmap for read-only
32 void SelectObjectAsSource(const wxBitmap
& bmp
);
34 // get selected bitmap
35 const wxBitmap
& GetSelectedBitmap() const;
36 wxBitmap
& GetSelectedBitmap();
39 DECLARE_DYNAMIC_CLASS(wxMemoryDC
)
44 // _WX_DCMEMORY_H_BASE_