28 # if defined(__sgi) && !defined(_COMPILER_VERSION) 30 # endif // __sgi && !_COMPILER_VERSION 37 friend class Fl_Graphics_Driver;
40 void set_data(
const char *
const *p);
53 int cache_w_, cache_h_;
58 explicit Fl_Pixmap(
char *
const * D) :
Fl_Image(-1,0,1), alloc_data(0), id_(0), mask_(0) {set_data((
const char*
const*)D); measure();}
60 explicit Fl_Pixmap(
uchar*
const * D) :
Fl_Image(-1,0,1), alloc_data(0), id_(0), mask_(0) {set_data((
const char*
const*)D); measure();}
62 explicit Fl_Pixmap(
const char *
const * D) :
Fl_Image(-1,0,1), alloc_data(0), id_(0), mask_(0) {set_data((
const char*
const*)D); measure();}
64 explicit Fl_Pixmap(
const uchar*
const * D) :
Fl_Image(-1,0,1), alloc_data(0), id_(0), mask_(0) {set_data((
const char*
const*)D); measure();}
70 virtual void draw(
int X,
int Y,
int W,
int H,
int cx=0,
int cy=0);
71 void draw(
int X,
int Y) {
draw(X, Y,
w(),
h(), 0, 0);}
virtual void desaturate()
The desaturate() method converts an image to grayscale.
Definition: Fl_Image.cxx:110
Fl_Pixmap(char *const *D)
The constructors create a new pixmap from the specified XPM data.
Definition: Fl_Pixmap.H:58
The Fl_Pixmap class supports caching and drawing of colormap (pixmap) images, including transparency...
Definition: Fl_Pixmap.H:36
int h() const
Returns the current image drawing height in FLTK units.
Definition: Fl_Image.H:132
virtual void label(Fl_Widget *w)
The label() methods are an obsolete way to set the image attribute of a widget or menu item...
Definition: Fl_Image.cxx:130
Base class for image caching, scaling and drawing.
Definition: Fl_Image.H:62
Fl_Image, Fl_RGB_Image classes.
int w() const
Returns the current image drawing width in FLTK units.
Definition: Fl_Image.H:126
Fl_Pixmap(const char *const *D)
The constructors create a new pixmap from the specified XPM data.
Definition: Fl_Pixmap.H:62
virtual void draw(int X, int Y, int W, int H, int cx=0, int cy=0)
Draws the image to the current drawing surface with a bounding box.
Definition: Fl_Image.cxx:60
Fl_Pixmap(const uchar *const *D)
The constructors create a new pixmap from the specified XPM data.
Definition: Fl_Pixmap.H:64
Fl_Image * copy()
Creates a copy of the specified image.
Definition: Fl_Image.H:217
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:99
unsigned int Fl_Color
An FLTK color value; see also Colors.
Definition: Enumerations.H:1042
Fl_Pixmap(uchar *const *D)
The constructors create a new pixmap from the specified XPM data.
Definition: Fl_Pixmap.H:60
virtual void uncache()
If the image has been cached for display, delete the cache data.
Definition: Fl_Image.cxx:57
unsigned char uchar
unsigned char
Definition: fl_types.h:28