Interface ImageEncoder
access this type via: media.image.ImageEncoder (provides, requires or uses)
--- semantic variants: ico, jpg, bmp, png
This API supports encoding of a general pixel map into a specific image format. Use one of the semantic variants of this interface to select an image format.
Functions
ImageEncoder()
bool loadImage(File fd)
bool saveImage(File fd)
PixelMap getPixels()
void setPixels(storePixelMap pm)
ImageEncoder()
Instantiate an image encoder.
bool loadImage(File fd)
Load an image from a given file object.
bool saveImage(File fd)
Save the pixel map help by this object to a given file object.
PixelMap getPixels()
Get the pixel map held by this object.
void setPixels(storePixelMap pm)
Set the pixel map held by this object.