ClanLib  2.3.7
List of all members
CL_JPEGProvider Class Reference

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

#include <jpeg_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 &file)
 
static void save (CL_PixelBuffer buffer, const CL_String &filename, CL_VirtualDirectory &directory, int quality=85)
 Save the given PixelBuffer into a JPEG. More...
 
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
filenameName of the file to load.
directoryDirectory 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
bufferThe CL_PixelBuffer to save, format doesn't matter its converted if needed
filenameFile name of JPEG.
directoryDirectory that the file name is relative to.
qualityThe 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: