diff options
| author | Manolo Gouy <Manolo> | 2016-10-22 11:42:20 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-10-22 11:42:20 +0000 |
| commit | bbfd91977309465464a318e69dfad2bbfbc5df5a (patch) | |
| tree | cd24598c8f0e1b505d469b08658c0e48fd259ef7 /src/drivers/GDI/Fl_GDI_Graphics_Driver.H | |
| parent | 52479a5ef156ec7bf4ed1661bf5fd6ac5f04b98f (diff) | |
WIN platform: implement Fl_GDI_Graphics_Driver::draw_scaled(Fl_Image *img,int,int,int,int) when img is a Fl_RGB_Image
Implementation uses StretchBlt() when img->d() is 1 or 3 and AlphaBlend() when it is 2 or 4.
This should turn useful to draw images on HighDPI displays using the display's true resolution.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12053 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/GDI/Fl_GDI_Graphics_Driver.H')
| -rw-r--r-- | src/drivers/GDI/Fl_GDI_Graphics_Driver.H | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver.H b/src/drivers/GDI/Fl_GDI_Graphics_Driver.H index 3e88c1d48..62c624bc9 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver.H +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver.H @@ -35,6 +35,8 @@ This class is implemented only on the MSWindows platform. */ class FL_EXPORT Fl_GDI_Graphics_Driver : public Fl_Graphics_Driver { +private: + BOOL alpha_blend_(int x, int y, int w, int h, HDC src_gc, int srcx, int srcy, int srcw, int srch); protected: HDC gc_; int numcount; @@ -62,6 +64,7 @@ public: void draw(Fl_Pixmap *pxm, int XP, int YP, int WP, int HP, int cx, int cy); void draw(Fl_Bitmap *pxm, int XP, int YP, int WP, int HP, int cx, int cy); void draw(Fl_RGB_Image *img, int XP, int YP, int WP, int HP, int cx, int cy); + int draw_scaled(Fl_Image *img, int XP, int YP, int WP, int HP); void draw_image(const uchar* buf, int X,int Y,int W,int H, int D=3, int L=0); void draw_image(Fl_Draw_Image_Cb cb, void* data, int X,int Y,int W,int H, int D=3); void draw_image_mono(const uchar* buf, int X,int Y,int W,int H, int D=1, int L=0); |
