CL_JPEGProvider Class Reference
[clanDisplay Image Providers]

Image provider that can load JPEG (.jpg) files. More...

#include <jpeg_provider.h>

List of all members.

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.
static CL_PixelBuffer load (const CL_String &fullname)
static CL_PixelBuffer load (CL_IODevice &file)
static void save (CL_PixelBuffer buffer, const CL_String &filename, CL_VirtualDirectory &directory, int quality=85)
 Save the given PixelBuffer into a JPEG.
static void save (CL_PixelBuffer buffer, const CL_String &fullname, int quality=85)
static void save (CL_PixelBuffer buffer, CL_IODevice &file, int quality=85)

Detailed Description

Image provider that can load JPEG (.jpg) files.


Member Function Documentation

static CL_PixelBuffer CL_JPEGProvider::load ( const CL_String filename,
const CL_VirtualDirectory directory 
) [static]

Called to load an image with this provider type.

Parameters:
filename Name of the file to load.
directory Directory that file name is relative to.
static CL_PixelBuffer CL_JPEGProvider::load ( const CL_String fullname  )  [static]
static CL_PixelBuffer CL_JPEGProvider::load ( CL_IODevice file  )  [static]
static void CL_JPEGProvider::save ( CL_PixelBuffer  buffer,
const CL_String filename,
CL_VirtualDirectory directory,
int  quality = 85 
) [static]

Save the given PixelBuffer into a JPEG.

Parameters:
buffer The CL_PixelBuffer to save, format doesn't matter its converted if needed
filename File name of JPEG.
directory Directory that the file name is relative to.
quality The quality level of the JPEG (0-100), 100 being best quality.
static void CL_JPEGProvider::save ( CL_PixelBuffer  buffer,
const CL_String fullname,
int  quality = 85 
) [static]
static void CL_JPEGProvider::save ( CL_PixelBuffer  buffer,
CL_IODevice file,
int  quality = 85 
) [static]

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