X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be25e4809325d89075f6477025e02706137e6ffd..794bcc2dea743ac907b839f54e451847c9ea4b72:/include/wx/image.h?ds=inline diff --git a/include/wx/image.h b/include/wx/image.h index 893e272c2e..09aa6ed4a2 100644 --- a/include/wx/image.h +++ b/include/wx/image.h @@ -101,6 +101,9 @@ public: wxImage( const wxBitmap &bitmap ); operator wxBitmap() const { return ConvertToBitmap(); } wxBitmap ConvertToBitmap() const; +#ifdef __WXGTK__ + wxBitmap ConvertToMonoBitmap( unsigned char red, unsigned char green, unsigned char blue ); +#endif void Create( int width, int height ); void Destroy(); @@ -114,6 +117,11 @@ public: // rescales the image in place wxImage& Rescale( int width, int height ) { return *this = Scale(width, height); } + // Rotates the image about the given point, 'angle' radians. + // Returns the rotated image, leaving this image intact. + wxImage Rotate(double angle, const wxPoint & centre_of_rotation, + bool interpolating = TRUE, wxPoint * offset_after_rotation = (wxPoint*) NULL) const ; + // replace one colour with another void Replace( unsigned char r1, unsigned char g1, unsigned char b1, unsigned char r2, unsigned char g2, unsigned char b2 );