From: Stefan Csomor Date: Tue, 25 Jan 2011 15:47:05 +0000 (+0000) Subject: adding constructor from CGImageRef X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bf7470fe143838b3cc928edb5838e78f0670c539 adding constructor from CGImageRef git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/core/bitmap.cpp b/src/osx/core/bitmap.cpp index bb7903fac1..5bc3d9fb25 100644 --- a/src/osx/core/bitmap.cpp +++ b/src/osx/core/bitmap.cpp @@ -1011,6 +1011,11 @@ wxBitmap::wxBitmap(const wxString& filename, wxBitmapType type) LoadFile(filename, type); } +wxBitmap::wxBitmap(CGImageRef image) +{ + (void) Create(image); +} + wxGDIRefData* wxBitmap::CreateGDIRefData() const { return new wxBitmapRefData;