summaryrefslogtreecommitdiff
path: root/FL/Fl_BMP_Image.H
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2021-09-27 19:21:21 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2021-09-27 19:26:04 +0200
commite0d630ed72f354916efec1e620adf6f276b40564 (patch)
tree498bd698c5e8917087db77fa0e8502b9071c0bf1 /FL/Fl_BMP_Image.H
parent1d847fec00cbcfc82e4864802c2686575101f1ee (diff)
Add error checking and improve constructor of Fl_BMP_Image
- use new features of Fl_Image_Reader (read error and EOF checks) - add length argument to constructor reading from memory
Diffstat (limited to 'FL/Fl_BMP_Image.H')
-rw-r--r--FL/Fl_BMP_Image.H12
1 files changed, 6 insertions, 6 deletions
diff --git a/FL/Fl_BMP_Image.H b/FL/Fl_BMP_Image.H
index c779d6525..63dd301df 100644
--- a/FL/Fl_BMP_Image.H
+++ b/FL/Fl_BMP_Image.H
@@ -1,7 +1,7 @@
//
// BMP image header file for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2020 by Bill Spitzak and others.
+// Copyright 1998-2021 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -27,14 +27,14 @@
*/
class FL_EXPORT Fl_BMP_Image : public Fl_RGB_Image {
- public:
+public:
- Fl_BMP_Image(const char* filename);
- Fl_BMP_Image(const char* imagename, const unsigned char *data);
+ Fl_BMP_Image(const char* filename);
+ Fl_BMP_Image(const char* imagename, const unsigned char *data, const long length = -1);
- protected:
+protected:
- void load_bmp_(class Fl_Image_Reader &rdr);
+ void load_bmp_(class Fl_Image_Reader &rdr);
};