From 3e61ec7044942ebaeda948c64df762a0250f8954 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 20 Nov 2023 17:13:09 +0100 Subject: New member function Fl_Image_Surface::mask(Fl_RGB_Image*) --- FL/Fl_Image_Surface.H | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'FL') diff --git a/FL/Fl_Image_Surface.H b/FL/Fl_Image_Surface.H index da2f5e761..20a215e3c 100644 --- a/FL/Fl_Image_Surface.H +++ b/FL/Fl_Image_Surface.H @@ -82,6 +82,7 @@ public: int printable_rect(int *w, int *h) FL_OVERRIDE; Fl_Offscreen offscreen(); void rescale(); + void mask(const Fl_RGB_Image *); }; @@ -107,11 +108,15 @@ protected: int external_offscreen; Fl_Image_Surface_Driver(int w, int h, int /*high_res*/, Fl_Offscreen off) : Fl_Widget_Surface(NULL), width(w), height(h), offscreen(off) {external_offscreen = (off != 0);} virtual ~Fl_Image_Surface_Driver() {} + static void copy_with_mask(Fl_RGB_Image* mask, uchar *dib_dst, uchar *dib_src, + int line_size, bool bottom_to_top); + static Fl_RGB_Image *RGB3_to_RGB1(const Fl_RGB_Image *rgb3, int W, int H); void set_current() FL_OVERRIDE = 0; void translate(int x, int y) FL_OVERRIDE = 0; void untranslate() FL_OVERRIDE = 0; int printable_rect(int *w, int *h) FL_OVERRIDE; virtual Fl_RGB_Image *image() = 0; + virtual void mask(const Fl_RGB_Image *) {} /** Each platform implements this function its own way. It returns an object implementing all virtual functions of class Fl_Image_Surface_Driver for the plaform. -- cgit v1.2.3