This is the base class for implementing image file loading/saving, and image creation from data.
It is used within Image and is not normally seen by the application.
If you wish to extend the capabilities of Image, derive a class from ImageHandler
and add the handler using Image#add_handler in your
application initialisation.
This software is based in part on the work of the Independent JPEG Group.
(Applies when Widgets is linked with JPEG support. JPEGHandler uses libjpeg
created by IJG.)
Destroys the ImageHandler object.
Gets the name of this handler.
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.
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.
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.
true if the operation succeeded, false otherwise.
Image#load_file,
Image#save_file,
ImageHandler#save_file
Saves a image in the output stream.
true if the operation succeeded, false otherwise.
Image#load_file,
Image#save_file,
ImageHandler#load_file
Sets the handler name.
Sets the handler extension.
Sets the handler MIME type.
Sets the handler type.
[This page automatically generated from the Textile source at 2023-06-09 00:45:25 +0000]