Combine two wxImage-to-pixmap creation functions into one.

Use consistent method for creating mono bitmap in wxBitmap and wxMask.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2006-08-14 06:26:35 +00:00
parent 8f3773fdfd
commit 5ac1d44aa4
2 changed files with 99 additions and 209 deletions

View File

@@ -136,9 +136,7 @@ protected:
private:
// to be called from CreateFromImage only!
bool CreateFromImageAsBitmap(const wxImage& image);
bool CreateFromImageAsPixmap(const wxImage& image);
bool CreateFromImageAsPixmap(const wxImage& image, int depth);
bool CreateFromImageAsPixbuf(const wxImage& image);
enum Representation