FLTK 1.4.5: Fl_BMP_Image.H Source File

FLTK 1.4.5

Loading...
Searching...
No Matches
Fl_BMP_Image.H
1//
2// BMP image header file for the Fast Light Tool Kit (FLTK).
3//
4// Copyright 1998-2022 by Bill Spitzak and others.
5//
6// This library is free software. Distribution and use rights are outlined in
7// the file "COPYING" which should have been included with this file. If this
8// file is missing or damaged, see the license at:
9//
10// https://www.fltk.org/COPYING.php
11//
12// Please see the following page on how to report bugs and issues:
13//
14// https://www.fltk.org/bugs.php
15//
16
17/* \file
18 Fl_BMP_Image widget . */
19
20#ifndef Fl_BMP_Image_H
21#define Fl_BMP_Image_H
22# include "Fl_Image.H"
23
28 class FL_EXPORT Fl_BMP_Image : public Fl_RGB_Image {
29
30public:
31
32 Fl_BMP_Image(const char* filename);
33 Fl_BMP_Image(const char* imagename, const unsigned char *data, const long length = -1);
34
35protected:
36
37 void load_bmp_(class Fl_Image_Reader &rdr, int ico_height = 0, int ico_width = 0);
38
39};
40
41#endif
Fl_Image.H
Fl_Image, Fl_RGB_Image classes.
Fl_BMP_Image::Fl_BMP_Image
Fl_BMP_Image(const char *filename)
This constructor loads the named BMP image from the given BMP filename.
Definition Fl_BMP_Image.cxx:57
Fl_Image_Reader
Definition Fl_Image_Reader.h:32
Fl_Image::data
void data(const char *const *p, int c)
Sets the current data pointer and count of pointers in the array.
Definition Fl_Image.H:117
Fl_RGB_Image::Fl_RGB_Image
Fl_RGB_Image(const uchar *bits, int W, int H, int D=3, int LD=0)
The constructor creates a new image from the specified data.
Definition Fl_Image.cxx:374