22 #ifndef Fl_Shared_Image_H 
   23 #  define Fl_Shared_Image_H 
   29 typedef Fl_Image *(*Fl_Shared_Handler)(
const char *name, 
uchar *header,
 
   48   static int    num_images_;            
 
   49   static int    alloc_images_;          
 
   50   static Fl_Shared_Handler *handlers_;  
 
   51   static int    num_handlers_;          
 
   52   static int    alloc_handlers_;        
 
   71   const char    *
name() { 
return name_; }
 
   81   virtual void draw(
int X, 
int Y, 
int W, 
int H, 
int cx, 
int cy);
 
   82   void draw(
int X, 
int Y) { 
draw(X, Y, 
w(), 
h(), 0, 0); }
 
   88   static int            num_images();
 
   89   static void           add_handler(Fl_Shared_Handler f);
 
   90   static void           remove_handler(Fl_Shared_Handler f);
 
  101 #endif // !Fl_Shared_Image_H 
virtual void desaturate()
The desaturate() method converts an image to grayscale. 
Definition: Fl_Image.cxx:101
The Fl_PNG_Image class supports loading, caching, and drawing of Portable Network Graphics (PNG) imag...
Definition: Fl_PNG_Image.H:32
Fl_Image is the base class used for caching and drawing all kinds of images in FLTK. 
Definition: Fl_Image.H:52
Fl_Image, Fl_RGB_Image classes. 
virtual void draw(int X, int Y, int W, int H, int cx=0, int cy=0)
Draws the image with a bounding box. 
Definition: Fl_Image.cxx:54
const char * name()
Returns the filename of the shared image. 
Definition: Fl_Shared_Image.H:71
The Fl_JPEG_Image class supports loading, caching, and drawing of Joint Photographic Experts Group (J...
Definition: Fl_JPEG_Image.H:32
Fl_Image * copy()
The copy() method creates a copy of the specified image. 
Definition: Fl_Image.H:138
int refcount()
Returns the number of references of this shared image. 
Definition: Fl_Shared_Image.H:73
virtual void color_average(Fl_Color c, float i)
The color_average() method averages the colors in the image with the FLTK color value c...
Definition: Fl_Image.cxx:92
unsigned int Fl_Color
An FLTK color value; see also Colors. 
Definition: Enumerations.H:796
FL_EXPORT void fl_register_images()
Register the image formats. 
Definition: fl_images_core.cxx:54
int w() const 
Returns the current image width in pixels. 
Definition: Fl_Image.H:93
This class supports caching, loading, and drawing of image files. 
Definition: Fl_Shared_Image.H:40
virtual void uncache()
If the image has been cached for display, delete the cache data. 
Definition: Fl_Image.cxx:51
int h() const 
Returns the current image height in pixels. 
Definition: Fl_Image.H:96
unsigned char uchar
unsigned char 
Definition: fl_types.h:30