FLTK 1.3.x
|
The Fl_JPEG_Image class supports loading, caching, and drawing of Joint Photographic Experts Group (JPEG) File Interchange Format (JFIF) images. More...
#include <Fl_JPEG_Image.H>
Public Member Functions | |
Fl_JPEG_Image (const char *filename) | |
The constructor loads the JPEG image from the given jpeg filename. | |
Fl_JPEG_Image (const char *name, const unsigned char *data) | |
The constructor loads the JPEG image from memory. |
The Fl_JPEG_Image class supports loading, caching, and drawing of Joint Photographic Experts Group (JPEG) File Interchange Format (JFIF) images.
The class supports grayscale and color (RGB) JPEG image files.
Fl_JPEG_Image::Fl_JPEG_Image | ( | const char * | filename | ) |
The constructor loads the JPEG image from the given jpeg filename.
The inherited destructor frees all memory and server resources that are used by the image.
There is no error function in this class. If the image has loaded correctly, w(), h(), and d() should return values greater zero.
filename | a full path and name pointing to a valid jpeg file. |
Fl_JPEG_Image::Fl_JPEG_Image | ( | const char * | name, |
const unsigned char * | data | ||
) |
The constructor loads the JPEG image from memory.
The inherited destructor frees all memory and server resources that are used by the image.
There is no error function in this class. If the image has loaded correctly, w(), h(), and d() should return values greater zero.
name | developer shoud provide a unique name for this image |
data | a pointer to the memorry location of the jpeg image |