2002-01-06 20:51:12 +03:00
|
|
|
//
|
|
|
|
// BMP image header file for the Fast Light Tool Kit (FLTK).
|
|
|
|
//
|
2020-01-14 00:40:20 +03:00
|
|
|
// Copyright 1998-2020 by Bill Spitzak and others.
|
2002-01-06 20:51:12 +03:00
|
|
|
//
|
2011-07-19 08:49:30 +04:00
|
|
|
// 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
|
|
|
|
// file is missing or damaged, see the license at:
|
|
|
|
//
|
2020-01-14 00:40:20 +03:00
|
|
|
// https://www.fltk.org/COPYING.php
|
2002-01-06 20:51:12 +03:00
|
|
|
//
|
2020-07-01 19:03:10 +03:00
|
|
|
// Please see the following page on how to report bugs and issues:
|
2005-04-16 04:13:17 +04:00
|
|
|
//
|
2020-07-01 19:03:10 +03:00
|
|
|
// https://www.fltk.org/bugs.php
|
2002-01-06 20:51:12 +03:00
|
|
|
//
|
|
|
|
|
2008-10-15 17:46:06 +04:00
|
|
|
/* \file
|
2008-09-16 11:26:22 +04:00
|
|
|
Fl_BMP_Image widget . */
|
|
|
|
|
2002-01-06 20:51:12 +03:00
|
|
|
#ifndef Fl_BMP_Image_H
|
|
|
|
#define Fl_BMP_Image_H
|
|
|
|
# include "Fl_Image.H"
|
|
|
|
|
2008-09-14 22:19:41 +04:00
|
|
|
/**
|
2015-05-24 02:42:26 +03:00
|
|
|
The Fl_BMP_Image class supports loading, caching,
|
2020-01-14 00:40:20 +03:00
|
|
|
and drawing of Windows Bitmap (BMP) image files.
|
2015-05-24 02:42:26 +03:00
|
|
|
*/
|
2002-01-06 20:51:12 +03:00
|
|
|
class FL_EXPORT Fl_BMP_Image : public Fl_RGB_Image {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2020-01-03 23:10:00 +03:00
|
|
|
Fl_BMP_Image(const char* filename);
|
2020-01-05 17:51:47 +03:00
|
|
|
Fl_BMP_Image(const char* imagename, const unsigned char *data);
|
2020-01-03 23:10:00 +03:00
|
|
|
|
|
|
|
protected:
|
|
|
|
|
2020-01-14 00:40:20 +03:00
|
|
|
void load_bmp_(class Fl_Image_Reader &rdr);
|
2020-01-03 23:10:00 +03:00
|
|
|
|
2002-01-06 20:51:12 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|