X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/52f96deca1baa3c5ac50eb1c22481ae21cb941fc..b1d66b5415f7befb45e050d7097571642b8bfa56:/include/wx/image.h diff --git a/include/wx/image.h b/include/wx/image.h index adfce58b9c..661c514d81 100644 --- a/include/wx/image.h +++ b/include/wx/image.h @@ -151,6 +151,15 @@ public: unsigned char GetGreen( int x, int y ) const; unsigned char GetBlue( int x, int y ) const; + // 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 ); virtual bool LoadFile( const wxString& name, const wxString& mimetype ); @@ -185,10 +194,12 @@ public: void SetMask( bool mask = TRUE ); bool HasMask() const; +#if wxUSE_PALETTE // Palette functions bool HasPalette() const; const wxPalette& GetPalette() const; void SetPalette(const wxPalette& palette); +#endif // wxUSE_PALETTE // Option functions (arbitrary name/value mapping) void SetOption(const wxString& name, const wxString& value);