|
fltk 1.3.0rc3
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Release candidate.
SfR Fresh Dox: fltk-1.3.0rc3-source.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation) ![]() |
#include <Fl_PNG_Image.H>


Public Member Functions | |
| Fl_PNG_Image (const char *filename) | |
The Fl_PNG_Image class supports loading, caching, and drawing of Portable Network Graphics (PNG) image files. The class loads colormapped and full-color images and handles color- and alpha-based transparency.
Definition at line 41 of file Fl_PNG_Image.H.
| Fl_PNG_Image::Fl_PNG_Image | ( | const char * | png | ) |
The constructor loads the named PNG image from the given png filename.
The destructor free all memory and server resources that are used by the image.
Definition at line 63 of file Fl_PNG_Image.cxx.
References Fl_RGB_Image::alloc_array, Fl_RGB_Image::array, Fl_Image::d(), fl_fopen(), fp, Fl_Image::h(), i, info, NULL, num_trans, PNG_COLOR_MASK_ALPHA, PNG_COLOR_MASK_COLOR, PNG_COLOR_TYPE_PALETTE, png_create_info_struct(), png_create_read_struct(), png_destroy_read_struct(), png_get_bit_depth(), png_get_color_type(), png_get_image_height(), png_get_image_width(), png_get_tRNS(), png_get_valid(), PNG_INFO_tRNS, png_init_io(), png_jmpbuf, PNG_LIBPNG_VER_STRING, png_read_end(), png_read_info(), png_read_rows(), png_set_expand(), png_set_interlace_handling(), png_set_packing(), png_set_strip_16(), png_set_tRNS_to_alpha(), ptr, Fl_Image::w(), and Fl::warning.