ClanLib  2.3.7
List of all members
CL_PNGProvider Class Reference

Surface provider that can load PNG (.png) files. More...

#include <png_provider.h>

Static Public Member Functions

Construction
static CL_PixelBuffer load (const CL_String &filename, const CL_VirtualDirectory &directory)
 Called to load an image with this provider type. More...
 
static CL_PixelBuffer load (const CL_String &fullname)
 
static CL_PixelBuffer load (CL_IODevice &dev)
 Load. More...
 
static void save (CL_PixelBuffer buffer, const CL_String &filename, CL_VirtualDirectory &directory)
 Called to save a given PixelBuffer to a file. More...
 
static void save (CL_PixelBuffer buffer, const CL_String &fullname)
 
static void save (CL_PixelBuffer buffer, CL_IODevice &iodev)
 Save the given PixelBuffer to an output device. More...
 

Detailed Description

Surface provider that can load PNG (.png) files.

Member Function Documentation

static CL_PixelBuffer CL_PNGProvider::load ( const CL_String filename,
const CL_VirtualDirectory directory 
)
static

Called to load an image with this provider type.

Parameters
nameName of the file to load.
directoryDirectory that file name is relative to.
static CL_PixelBuffer CL_PNGProvider::load ( const CL_String fullname)
static
static CL_PixelBuffer CL_PNGProvider::load ( CL_IODevice dev)
static

Load.

Parameters
dev= IODevice
Returns
Pixel Buffer
static void CL_PNGProvider::save ( CL_PixelBuffer  buffer,
const CL_String filename,
CL_VirtualDirectory directory 
)
static

Called to save a given PixelBuffer to a file.

static void CL_PNGProvider::save ( CL_PixelBuffer  buffer,
const CL_String fullname 
)
static
static void CL_PNGProvider::save ( CL_PixelBuffer  buffer,
CL_IODevice iodev 
)
static

Save the given PixelBuffer to an output device.


The documentation for this class was generated from the following file: