Added missing wxImage methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -101,6 +101,7 @@ public:
|
||||
#endif
|
||||
void Create( int width, int height );
|
||||
void Destroy();
|
||||
|
||||
wxImage Scale( int width, int height );
|
||||
wxImage& Rescale(int width, int height);
|
||||
|
||||
@@ -164,6 +165,15 @@ public:
|
||||
void Replace( unsigned char r1, unsigned char g1, unsigned char b1,
|
||||
unsigned char r2, unsigned char g2, unsigned char b2 );
|
||||
|
||||
// convert to monochrome image (<r,g,b> will be replaced by white, everything else by black)
|
||||
wxImage ConvertToMono( unsigned char r, unsigned char g, unsigned char b ) const;
|
||||
|
||||
void SetOption(const wxString& name, const wxString& value);
|
||||
%name(SetOptionInt)void SetOption(const wxString& name, int value);
|
||||
wxString GetOption(const wxString& name) const;
|
||||
int GetOptionInt(const wxString& name) const;
|
||||
bool HasOption(const wxString& name) const;
|
||||
|
||||
unsigned long CountColours( unsigned long stopafter = (unsigned long) -1 );
|
||||
// TODO: unsigned long ComputeHistogram( wxHashTable &h );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user