summaryrefslogtreecommitdiff
path: root/FL/Fl_Image_Surface.H
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-02-12 11:49:32 +0000
committerManolo Gouy <Manolo>2016-02-12 11:49:32 +0000
commitbc83464b642caad491c70e3b54677dd50f6324b2 (patch)
tree8bf8b6c7701423c40ba6e2290c89879600c8676a /FL/Fl_Image_Surface.H
parent50ee3bcd66c4baa6bb3388f5b955d726bfc6bdd8 (diff)
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
Diffstat (limited to 'FL/Fl_Image_Surface.H')
-rw-r--r--FL/Fl_Image_Surface.H4
1 files changed, 3 insertions, 1 deletions
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 <FL/Fl_Copy_Surface.H>
#include <FL/Fl_Image.H>
+#include <FL/Fl_Shared_Image.H>
/** 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