native bitmap scaling codes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -104,8 +104,9 @@ public:
|
||||
wxBitmap(const void* data, wxBitmapType type, int width, int height, int depth = 1);
|
||||
|
||||
// creates an bitmap from the native image format
|
||||
wxBitmap(CGImageRef image);
|
||||
wxBitmap(CGImageRef image, double scale = 1.0);
|
||||
wxBitmap(WX_NSImage image);
|
||||
wxBitmap(CGContextRef bitmapcontext);
|
||||
|
||||
// Create a bitmap compatible with the given DC
|
||||
wxBitmap(int width, int height, const wxDC& dc);
|
||||
@@ -132,8 +133,9 @@ public:
|
||||
{ return Create(sz.GetWidth(), sz.GetHeight(), depth); }
|
||||
|
||||
virtual bool Create(const void* data, wxBitmapType type, int width, int height, int depth = 1);
|
||||
bool Create( CGImageRef image );
|
||||
bool Create( CGImageRef image, double scale = 1.0 );
|
||||
bool Create( WX_NSImage image );
|
||||
bool Create( CGContextRef bitmapcontext);
|
||||
|
||||
// Create a bitmap compatible with the given DC, inheriting its magnification factor
|
||||
bool Create(int width, int height, const wxDC& dc);
|
||||
|
Reference in New Issue
Block a user