diff options
| author | Manolo Gouy <Manolo> | 2011-01-17 20:51:12 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-01-17 20:51:12 +0000 |
| commit | 0ae1054d07bb0b24061243253c1a4a997df68dd0 (patch) | |
| tree | 468aae8adca6abaef0ae9f4f038360d5e12f795b /FL/Fl_PNG_Image.H | |
| parent | 5af1531cd247912e41d443e16fdc8b9053245c04 (diff) | |
Fix 2nd part of STR #2520: added Fl_PNG_Image in-memory constructor.
This constructor has a 3rd argument, the size of the array holding the in-memory PNG image.
This allows the constructor to check for errors in the image.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8287 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_PNG_Image.H')
| -rw-r--r-- | FL/Fl_PNG_Image.H | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/FL/Fl_PNG_Image.H b/FL/Fl_PNG_Image.H index 9721cbba1..5db402b3f 100644 --- a/FL/Fl_PNG_Image.H +++ b/FL/Fl_PNG_Image.H @@ -40,9 +40,12 @@ */ class FL_EXPORT Fl_PNG_Image : public Fl_RGB_Image { - public: +public: Fl_PNG_Image(const char* filename); + Fl_PNG_Image (const char *name_png, const unsigned char *buffer, int datasize); +private: + void load_png_(const char *name_png, const unsigned char *buffer_png, int datasize); }; #endif |
