(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);
#if wxOSX_USE_COCOA
+wxBitmap::wxBitmap(WX_NSImage image)
+{
+ (void)Create(image);
+}
+
+bool wxBitmap::Create(WX_NSImage image)
+{
+ wxCFRef<CGImageRef> cgimage(wxOSXCreateCGImageFromNSImage(image));
+ return Create(cgimage);
+}
+
WX_NSImage wxBitmap::GetNSImage() const
{
wxCFRef< CGImageRef > cgimage(CreateCGImage());
return M_BITMAPDATA->IsOk() ;
}
-
bool wxBitmap::Create(CGImageRef image)
{
UnRef();