31 friend class Fl_ICO_Image;
35 Fl_PNG_Image (
const char *name_png,
const unsigned char *buffer,
int datasize);
38 void load_png_(
const char *name_png,
int offset,
const unsigned char *buffer_png,
int datasize);
43FL_EXPORT
int fl_write_png(
const char *filename,
Fl_RGB_Image *img);
44FL_EXPORT
int fl_write_png(
const char *filename,
const char *pixels,
int w,
int h,
int d=3,
int ld=0);
45FL_EXPORT
int fl_write_png(
const char *filename,
const unsigned char *pixels,
int w,
int h,
int d=3,
int ld=0);
Fl_Image, Fl_RGB_Image classes.
int ld() const
Returns the current line data size in bytes.
Definition Fl_Image.H:156
int d() const
Returns the image depth.
Definition Fl_Image.H:151
Fl_PNG_Image(const char *filename)
The constructor loads the named PNG image from the given png filename.
Definition Fl_PNG_Image.cxx:88
The Fl_RGB_Image class supports caching and drawing of full-color images with 1 to 4 channels of colo...
Definition Fl_Image.H:339
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