]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mac/bitmap.h
corrected a bug in dc which resetted the port , exchanged the wxchoice implementation
[wxWidgets.git] / include / wx / mac / bitmap.h
index 85eaf59e8129979222668a282586058ebbecbf29..b06e1030e8dd71ebd97f54f5a61e1b28e68409f8 100644 (file)
@@ -27,6 +27,7 @@ class WXDLLEXPORT wxBitmap;
 class WXDLLEXPORT wxBitmapHandler;
 class WXDLLEXPORT wxIcon;
 class WXDLLEXPORT wxCursor;
+class WXDLLEXPORT wxImage;
 
 GWorldPtr      wxMacCreateGWorld( int width , int height , int depth ) ;
 void           wxMacDestroyGWorld( GWorldPtr gw ) ;
@@ -141,8 +142,9 @@ public:
   wxBitmap(const char bits[], int width, int height, int depth = 1);
 
   // Initialize with XPM data
-  wxBitmap(const char **data);
-  wxBitmap(char **data);
+  bool CreateFromXpm(const char **bits);
+  wxBitmap(const char **bits);
+  wxBitmap(char **bits);
 
   // Load a file or resource
   wxBitmap(const wxString& name, long type = wxBITMAP_TYPE_PICT_RESOURCE);
@@ -152,7 +154,13 @@ public:
 
   // If depth is omitted, will create a bitmap compatible with the display
   wxBitmap(int width, int height, int depth = -1);
+  
+  // Convert from wxImage:
+  wxBitmap(const wxImage& image, int depth = -1);
+  
   ~wxBitmap();
+  
+  wxImage ConvertToImage() const;
 
   // get the given part of bitmap
   wxBitmap GetSubBitmap( const wxRect& rect ) const;