direct constructor from CGImageRef
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -101,6 +101,9 @@ public:
|
|||||||
// Constructor for generalised creation from data
|
// Constructor for generalised creation from data
|
||||||
wxBitmap(const void* data, wxBitmapType type, int width, int height, int depth = 1);
|
wxBitmap(const void* data, wxBitmapType type, int width, int height, int depth = 1);
|
||||||
|
|
||||||
|
// creates an bitmap from the native image format
|
||||||
|
wxBitmap(CGImageRef image);
|
||||||
|
|
||||||
// If depth is omitted, will create a bitmap compatible with the display
|
// 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(int width, int height, int depth = -1) { (void)Create(width, height, depth); }
|
||||||
wxBitmap(const wxSize& sz, int depth = -1) { (void)Create(sz, depth); }
|
wxBitmap(const wxSize& sz, int depth = -1) { (void)Create(sz, depth); }
|
||||||
@@ -123,6 +126,8 @@ public:
|
|||||||
{ return Create(sz.GetWidth(), sz.GetHeight(), depth); }
|
{ return Create(sz.GetWidth(), sz.GetHeight(), depth); }
|
||||||
|
|
||||||
virtual bool Create(const void* data, wxBitmapType type, int width, int height, int depth = 1);
|
virtual bool Create(const void* data, wxBitmapType type, int width, int height, int depth = 1);
|
||||||
|
bool Create( CGImageRef image );
|
||||||
|
|
||||||
// virtual bool Create( WXHICON icon) ;
|
// virtual bool Create( WXHICON icon) ;
|
||||||
virtual bool LoadFile(const wxString& name, wxBitmapType type = wxBITMAP_DEFAULT_TYPE);
|
virtual bool LoadFile(const wxString& name, wxBitmapType type = wxBITMAP_DEFAULT_TYPE);
|
||||||
virtual bool SaveFile(const wxString& name, wxBitmapType type, const wxPalette *cmap = NULL) const;
|
virtual bool SaveFile(const wxString& name, wxBitmapType type, const wxPalette *cmap = NULL) const;
|
||||||
|
Reference in New Issue
Block a user