+ bool Create(int width, int height, int depth = -1);
+ bool Create(const void* data, wxBitmapType type,
+ int width, int height, int depth = -1);
+ // create the wxBitmap using a _copy_ of the pixmap
+ bool Create(WXPixmap pixmap);
+
+ int GetHeight() const;
+ int GetWidth() const;
+ int GetDepth() const;
+
+#if wxUSE_IMAGE
+ wxBitmap( const wxImage& image, int depth = -1 ) { (void)CreateFromImage(image, depth); }
+ wxImage ConvertToImage() const;
+ bool CreateFromImage(const wxImage& image, int depth = -1);
+#endif // wxUSE_IMAGE
+
+ // copies the contents and mask of the given (colour) icon to the bitmap
+ virtual bool CopyFromIcon(const wxIcon& icon);
+
+ wxMask *GetMask() const;
+ void SetMask( wxMask *mask );
+
+ wxBitmap GetSubBitmap( const wxRect& rect ) const;
+
+ bool SaveFile( const wxString &name, wxBitmapType type, const wxPalette *palette = (wxPalette *) NULL ) const;
+ bool LoadFile( const wxString &name, wxBitmapType type = wxBITMAP_TYPE_XPM );
+
+ wxPalette *GetPalette() const;
+ wxPalette *GetColourMap() const
+ { return GetPalette(); };
+ virtual void SetPalette(const wxPalette& palette);
+
+ // implementation
+ // --------------
+
+ void SetHeight( int height );
+ void SetWidth( int width );
+ void SetDepth( int depth );
+ void SetPixmap( WXPixmap pixmap );
+ void SetBitmap( WXPixmap bitmap );
+
+ WXPixmap GetPixmap() const;
+ WXPixmap GetBitmap() const;
+
+ WXPixmap GetDrawable() const;
+
+ WXDisplay *GetDisplay() const;
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxBitmap)
+};