diff options
| author | Pierre Ossman <ossman@cendio.se> | 2014-06-12 13:28:04 +0000 |
|---|---|---|
| committer | Pierre Ossman <ossman@cendio.se> | 2014-06-12 13:28:04 +0000 |
| commit | ed7983f5b5aa2e4ccb6aff951e8a14c4015c7980 (patch) | |
| tree | a6fd7ab5c02f03a91a2df1cde7ba4461044c9202 /FL/Fl_Image.H | |
| parent | 5e9624286ae76237cb1a73622db999c77b611f2d (diff) | |
Add ability to convert a Fl_Pixmap into a Fl_RGB_Image.
This is very convenient as a lot of other functions only accept
a Fl_RGB_Image. Adding this functionality also required a bit
of spring cleaning in the the drawing routines. STR #2659.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10192 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Image.H')
| -rw-r--r-- | FL/Fl_Image.H | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/FL/Fl_Image.H b/FL/Fl_Image.H index 357982e63..edba4fe29 100644 --- a/FL/Fl_Image.H +++ b/FL/Fl_Image.H @@ -26,6 +26,7 @@ #include <stdlib.h> class Fl_Widget; +class Fl_Pixmap; struct Fl_Menu_Item; struct Fl_Label; @@ -203,6 +204,7 @@ public: */ Fl_RGB_Image(const uchar *bits, int W, int H, int D=3, int LD=0) : Fl_Image(W,H,D), array(bits), alloc_array(0), id_(0), mask_(0) {data((const char **)&array, 1); ld(LD);} + Fl_RGB_Image(const Fl_Pixmap *pxm, Fl_Color bg=FL_GRAY); virtual ~Fl_RGB_Image(); virtual Fl_Image *copy(int W, int H); Fl_Image *copy() { return copy(w(), h()); } |
