|
Class Hierarchy
Fl_Image
|
+----Fl_RGB_Image
|
+----Fl_JPEG_Image,
Fl_PNG_Image,
Fl_PNM_Image,
Fl_BMP_Image
Include Files
#include <FL/Fl_RGB_Image.H>
Description
The Fl_RGB_Image class supports caching and drawing
of full-color images with 1 to 4 channels of color information.
Images with an even number of channels are assumed to contain
alpha information, which is used to blend the image with the
contents of the screen.
Fl_RGB_Image is defined in
<FL/Fl_Image.H>, however for compatibility reasons
<FL/Fl_RGB_Image.H> should be included.
Methods
The constructor creates a new image from the specified data.
The destructor free all memory and server resources that are used by
the image.
From XLoom, 05:31 Feb 07, 2004 (score=3)
In Dev-C FLTK package the Fl_RGB_Image class declaration is not in
#include <FL/Fl_RGB_Image.H>,
but in
#include <FL/Fl_Image.H>
with Fl_Image. Just thought it might be useful for someone.
[ Reply ] From Anonymous, 19:46 Jun 10, 2004 (score=1)
It is important to note that the image data is NOT copied.
The image structure just maintains a pointer to the array.
If you change the array, the image will also change. If the array goes out of scope, then the image will get random data at best, and crash the program at worst.
[ Reply ] |
| |