wxBitmap(CGImageRef image);
wxBitmap(WX_NSImage image);
+ // Create a bitmap compatible with the given DC
+ wxBitmap(int width, int height, const wxDC& dc);
+
// If depth is omitted, will create a bitmap compatible with the display
wxBitmap(int width, int height, int depth = -1) { (void)Create(width, height, depth); }
wxBitmap(const wxSize& sz, int depth = -1) { (void)Create(sz, depth); }
(void) Create(data, type, width, height, depth);
}
+wxBitmap::wxBitmap(int width, int height, const wxDC& WXUNUSED(dc))
+{
+ (void) Create(width, height);
+}
+
wxBitmap::wxBitmap(const wxString& filename, wxBitmapType type)
{
LoadFile(filename, type);
return M_BITMAPDATA->IsOk() ;
}
-
bool wxBitmap::Create(CGImageRef image)
{
UnRef();