![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
Surface provider that can load PNG (.png) files.
Contained in: global
Derived from:
CL_SurfaceProvider_Generic
Derived by:
none
Group: PNG (Surface Providers)
#include <ClanLib/png.h>
public function member index: |
||
Construction: |
||
static CL_Surface* | create | (CL_String handle, CL_InputSourceProvider* provider=NULL, bool transparent=true, bool ignore_alphachannel=false); |
CL_PNGProvider | (CL_String name, CL_InputSourceProvider* provider = NULL, bool transparent=true, bool ignore_alphachannel=false); | |
virtual | ~CL_PNGProvider | (); |
Attributes: |
||
CL_InputSource* | get_input_source | (); |
virtual unsigned int | get_pitch | () const; |
virtual unsigned int | get_width | () const; |
virtual unsigned int | get_height | () const; |
virtual unsigned int | get_num_frames | () const; |
virtual EPixelFormat | get_pixel_format | () const; |
virtual CL_Palette* | get_palette | () const; |
virtual unsigned int | get_src_colorkey | () const; |
virtual bool | uses_src_colorkey | () const; |
virtual bool | is_indexed | () const; |
virtual unsigned int | get_red_mask | () const; |
virtual unsigned int | get_green_mask | () const; |
virtual unsigned int | get_blue_mask | () const; |
virtual unsigned int | get_alpha_mask | () const; |
virtual unsigned int | get_depth | () const; |
virtual void* | get_data | () const; |
Operations: |
||
virtual void | perform_lock | (); |
virtual void | perform_unlock | (); |
static void | pngread_file | (png_structp png_ptr, png_bytep data, png_size_t length); |
private function member index: |
||
Implementation: |
||
void | read_data | (); |
void | read_data_rgb | (); |
void | read_data_rgba | (); |
void | read_data_grayscale | (); |
void | read_data_grayscale_alpha | (); |
void | read_data_palette | (); |
name - Name of the PNG file to load.
provider - Input source provider that delivers the PNG file.
transparent - True if a transparency color should be used.
ignore_alphachannel - True if the alpha component should be ignored.
trans_red - Red component of the transparency color.
trans_green - Green component of the transparency color.
trans_blue - blue component of the transparency color.