unsigned char GetGreen( int x, int y );
unsigned char GetBlue( int x, int y );
- bool LoadFile( const wxString& name, long type = wxBITMAP_TYPE_PNG );
+ static bool CanRead( const wxString& name );
+ bool LoadFile( const wxString& name, long type = wxBITMAP_TYPE_ANY );
%name(LoadMimeFile)bool LoadFile( const wxString& name, const wxString& mimetype );
bool SaveFile( const wxString& name, int type );
}
size_t len = self->GetWidth() * self->GetHeight() * 3;
- dataPtr = new unsigned char[len];
+ dataPtr = (unsigned char*) malloc(len);
memcpy(dataPtr, PyString_AsString(data), len);
self->SetData(dataPtr);
}
unsigned long CountColours( unsigned long stopafter = (unsigned long) -1 );
// TODO: unsigned long ComputeHistogram( wxHashTable &h );
+ static void AddHandler( wxImageHandler *handler );
+ static void InsertHandler( wxImageHandler *handler );
+ static bool RemoveHandler( const wxString& name );
};
// Alternate constructors
}
%}
-// Static Methods
-void wxImage_AddHandler(wxImageHandler *handler);
-%{
- void wxImage_AddHandler(wxImageHandler *handler) {
- wxImage::AddHandler(handler);
- }
-%}
void wxInitAllImageHandlers();