20#ifndef Fl_Tiled_Image_H
21# define Fl_Tiled_Image_H
48 void draw(
int X,
int Y,
int W,
int H,
int cx = 0,
int cy = 0)
FL_OVERRIDE;
49 void draw(
int X,
int Y) {
draw(X, Y,
w(),
h(), 0, 0); }
unsigned int Fl_Color
An FLTK color value; see also Colors
Definition: Enumerations.H:1126
Fl_Image, Fl_RGB_Image classes.
Base class for image caching, scaling and drawing.
Definition: Fl_Image.H:60
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:62
virtual void desaturate()
The desaturate() method converts an image to grayscale.
Definition: Fl_Image.cxx:144
virtual void color_average(Fl_Color c, float i)
The color_average() method averages the colors in the image with the provided FLTK color value.
Definition: Fl_Image.cxx:132
int w() const
Returns the current image drawing width in FLTK units.
Definition: Fl_Image.H:131
Fl_Image * copy() const
Creates a copy of the image in the same size.
Definition: Fl_Image.H:266
int h() const
Returns the current image drawing height in FLTK units.
Definition: Fl_Image.H:137
This class supports tiling of images over a specified area.
Definition: Fl_Tiled_Image.H:32
Fl_Image * image()
Gets The image that is tiled.
Definition: Fl_Tiled_Image.H:51
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition: fl_attr.h:38