17 #ifndef Fl_Image_Surface_H 18 #define Fl_Image_Surface_H 20 #include <FL/Fl_Widget_Surface.H> 66 friend class Fl_Graphics_Driver;
68 class Fl_Image_Surface_Driver *platform_surface;
80 void origin(
int *x,
int *y);
105 int external_offscreen;
107 virtual ~Fl_Image_Surface_Driver() {}
109 virtual void translate(
int x,
int y) = 0;
117 static Fl_Image_Surface_Driver *newImageSurfaceDriver(
int w,
int h,
int high_res,
Fl_Offscreen off);
125 #endif // Fl_Image_Surface_H void untranslate()
Undoes the effect of a previous translate() call.
Definition: Fl_Image_Surface.cxx:66
virtual void set_current(void)
Make this surface the current drawing surface.
Definition: Fl_Device.cxx:67
Fl_Image, Fl_RGB_Image classes.
The Fl_RGB_Image class supports caching and drawing of full-color images with 1 to 4 channels of colo...
Definition: Fl_Image.H:287
Directs all graphics requests to an Fl_Image.
Definition: Fl_Image_Surface.H:65
virtual bool is_current()
Is this surface the current drawing surface?
Definition: Fl_Device.cxx:79
int printable_rect(int *w, int *h)
Computes the width and height of the drawable area of the drawing surface.
Definition: Fl_Image_Surface.cxx:78
Fl_RGB_Image * image()
Returns an image made of all drawings sent to the Fl_Image_Surface object.
Definition: Fl_Image_Surface.cxx:98
void translate(int x, int y)
Translates the current graphics origin accounting for the current rotation.
Definition: Fl_Image_Surface.cxx:62
void set_current()
Make this surface the current drawing surface.
Definition: Fl_Image_Surface.cxx:54
This class supports caching, loading, and drawing of image files.
Definition: Fl_Shared_Image.H:49
Fl_Offscreen offscreen()
Returns the Fl_Offscreen object associated to the image surface.
Definition: Fl_Image_Surface.cxx:74