Added rotation to wxImage

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2000-02-06 14:51:36 +00:00
parent 12c1b46a2f
commit 7a632f1056
13 changed files with 454 additions and 0 deletions

View File

@@ -117,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 );