]> git.saurik.com Git - wxWidgets.git/commitdiff
adding constructor from CGImageRef
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 25 Jan 2011 15:47:05 +0000 (15:47 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 25 Jan 2011 15:47:05 +0000 (15:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/core/bitmap.cpp

index bb7903fac1484ae57db4def3a4a6ce769dcc4c3d..5bc3d9fb253672f6ad78844059b5b222b50b565d 100644 (file)
@@ -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;