X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/52b64b0a78c7f6c7994d25f6e212c715ab4404ba..1dee6b399299241ffef19a61717bcb18d7a855d5:/include/wx/image.h diff --git a/include/wx/image.h b/include/wx/image.h index 88f26a453b..661c514d81 100644 --- a/include/wx/image.h +++ b/include/wx/image.h @@ -151,9 +151,14 @@ public: unsigned char GetGreen( int x, int y ) const; unsigned char GetBlue( int x, int y ) const; - // used to manipulate the icons while extracting from .ico files - bool GetUnusedColour( unsigned char *r, unsigned char *g, unsigned char *b ); - bool ApplyMask( const wxImage & mask ); + // find first colour that is not used in the image and has higher + // RGB values than + bool FindFirstUnusedColour( unsigned char *r, unsigned char *g, unsigned char *b, + unsigned char startR = 1, unsigned char startG = 0, + unsigned char startB = 0 ); + // Set image's mask to the area of 'mask' that has colour + bool SetMaskFromImage(const wxImage & mask, + unsigned char mr, unsigned char mg, unsigned char mb); static bool CanRead( const wxString& name ); virtual bool LoadFile( const wxString& name, long type = wxBITMAP_TYPE_ANY );