1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxMemoryDC base header
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
9 // Licence: wxWindows Licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_DCMEMORY_H_BASE_
13 #define _WX_DCMEMORY_H_BASE_
16 #include "wx/bitmap.h"
18 //-----------------------------------------------------------------------------
20 //-----------------------------------------------------------------------------
22 class WXDLLIMPEXP_CORE wxMemoryDC
: public wxDC
26 wxMemoryDC( wxBitmap
& bitmap
);
27 wxMemoryDC( wxDC
*dc
);
29 // select the given bitmap to draw on it
30 void SelectObject(wxBitmap
& bmp
);
32 // select the given bitmap for read-only
33 void SelectObjectAsSource(const wxBitmap
& bmp
);
35 // get selected bitmap
36 const wxBitmap
& GetSelectedBitmap() const;
37 wxBitmap
& GetSelectedBitmap();
40 DECLARE_DYNAMIC_CLASS(wxMemoryDC
)
45 // _WX_DCMEMORY_H_BASE_