This is the base class for implementing image file loading/saving, and image creation from data. It is used within wxImage and is not normally seen by the application.
If you wish to extend the capabilities of wxImage, derive a class from wxImageHandler and add the handler using wxImage::AddHandler in your application initialisation.
Note (Legal Issue)
This software is based in part on the work of the Independent JPEG Group.
(Applies when wxWidgets is linked with JPEG support. wxJPEGHandler uses libjpeg created by IJG.)
Derived from
Include files
<wx/image.h>
See also
wxImage, wxInitAllImageHandlers
Default constructor. In your own default constructor, initialise the members m_name, m_extension and m_type.
Destroys the wxImageHandler object.
Gets the name of this handler.
wxString GetExtension(void) const
Gets the file extension associated with this handler.
If the image file contains more than one image and the image handler is capable of retrieving these individually, this function will return the number of available images.
Return value
Number of available images. For most image handlers, this is 1 (exceptions are TIFF and ICO formats).
Gets the image type associated with this handler.
wxString GetMimeType(void) const
Gets the MIME type associated with this handler.
Loads a image from a stream, putting the resulting data into image. If the image file contains more than one image and the image handler is capable of retrieving these individually, index indicates which image to read from the stream.
Parameters
Return value
true if the operation succeeded, false otherwise.
See also
wxImage::LoadFile, wxImage::SaveFile, wxImageHandler::SaveFile
Saves a image in the output stream.
Parameters
Return value
true if the operation succeeded, false otherwise.
See also
wxImage::LoadFile, wxImage::SaveFile, wxImageHandler::LoadFile
Sets the handler name.
Parameters
Sets the handler extension.
Parameters
Sets the handler MIME type.
Parameters
Sets the handler type.
Parameters