From bc83464b642caad491c70e3b54677dd50f6324b2 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 12 Feb 2016 11:49:32 +0000 Subject: Add Fl_Shared_Image *Fl_Image_Surface::highres_image() to draw into high-resolution bitmap. This new member function returns a high resolution bitmap image scaled to the adequate drawing size. This allows to create a bitmap image able to fill all pixels of a high resolution display. This is functional only for the Mac OS platform. On other platforms, the new member function returns an unscaled bitmap. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11158 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Image_Surface.H | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'FL/Fl_Image_Surface.H') diff --git a/FL/Fl_Image_Surface.H b/FL/Fl_Image_Surface.H index 29d951893..a926a8d6e 100644 --- a/FL/Fl_Image_Surface.H +++ b/FL/Fl_Image_Surface.H @@ -21,6 +21,7 @@ #include #include +#include /** Directs all graphics requests to an Fl_Image. @@ -65,12 +66,13 @@ private: public: static const char *class_id; const char *class_name() {return class_id;}; - Fl_Image_Surface(int w, int h); + Fl_Image_Surface(int w, int h, int highres = 0); ~Fl_Image_Surface(); void set_current(); void draw(Fl_Widget*, int delta_x = 0, int delta_y = 0); Fl_RGB_Image *image(); void draw_decorated_window(Fl_Window* win, int delta_x = 0, int delta_y = 0); + Fl_Shared_Image *highres_image(); }; #ifdef __APPLE__ // PORTME: platform surface driver -- cgit v1.2.3