![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
Surface provider that can load JPEG (.jpg) files.
Contained in: global
Derived from:
CL_SurfaceProvider
Derived by:
none
Group: JPEG (Surface Providers)
#include <ClanLib/jpeg.h>
public function member index: |
||
Construction: |
||
static CL_Surface* | create | (const CL_String& handle, CL_InputSourceProvider* provider=NULL, bool transparent=true, bool ignore_alphachannel=false); |
CL_JPEGProvider | (CL_String name, CL_InputSourceProvider* provider = NULL, bool transparent=true, bool ignore_alphachannel=false); | |
virtual | ~CL_JPEGProvider | (); |
Attributes: |
||
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 void* | get_data | () const; |
Operations: |
||
virtual void | lock | (); |
virtual void | unlock | (); |
name - Name of the PNG file to load.
provider - Input source provider that delivers the JPEG 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.