21# define Fl_ICO_Image_H
22# include "Fl_BMP_Image.H"
42 Fl_ICO_Image(
const char *filename,
int id = -1,
const unsigned char *
data = NULL,
const size_t datasize = 0);
53 struct IconDirEntry *icondirentry_;
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_ICO_Image(const char *filename, int id=-1, const unsigned char *data=NULL, const size_t datasize=0)
Loads the named icon image from the given .ico filename or from memory.
Definition Fl_ICO_Image.cxx:39
const IconDirEntry * icondirentry() const
Returns the array of idcount() loaded IconDirEntry structures.
Definition Fl_ICO_Image.H:49
int idcount() const
Returns the number of icons of various resolutions present in the ICO object.
Definition Fl_ICO_Image.H:46
Definition Fl_Image_Reader.h:32
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
Windows ICONDIRENTRY structure.
Definition Fl_ICO_Image.H:31
int bHeight
Image height.
Definition Fl_ICO_Image.H:33
int wBitCount
Bits per pixel.
Definition Fl_ICO_Image.H:37
int bWidth
Image width.
Definition Fl_ICO_Image.H:32
int wPlanes
Color Planes.
Definition Fl_ICO_Image.H:36
int dwImageOffset
Offset to the image.
Definition Fl_ICO_Image.H:39
int dwBytesInRes
Resource size in bytes.
Definition Fl_ICO_Image.H:38
int bReserved
Reserved.
Definition Fl_ICO_Image.H:35
int bColorCount
Number of colors (0 if ≥ 8bpp)
Definition Fl_ICO_Image.H:34