Decode


Functions

bool CxImage::LoadResource (HRSRC hRes, DWORD imagetype, HMODULE hModule=NULL)
bool CxImage::Load (const TCHAR *filename, DWORD imagetype=0)
bool CxImage::Decode (FILE *hFile, DWORD imagetype)
bool CxImage::Decode (CxFile *hFile, DWORD imagetype)
bool CxImage::Decode (BYTE *buffer, DWORD size, DWORD imagetype)
bool CxImage::CheckFormat (CxFile *hFile, DWORD imagetype=0)
bool CxImage::CheckFormat (BYTE *buffer, DWORD size, DWORD imagetype=0)

Detailed Description


Function Documentation

bool CxImage::CheckFormat ( BYTE *  buffer,
DWORD  size,
DWORD  imagetype = 0 
) [inherited]

bool CxImage::CheckFormat ( CxFile hFile,
DWORD  imagetype = 0 
) [inherited]

Loads an image from CxFile object

Parameters:
hFile,: file handle (CxMemFile or CxIOFile), with read access.
imagetype,: file format, default = 0 (CXIMAGE_FORMAT_UNKNOWN)
Returns:
: if imagetype is not 0, the function returns true when imagetype matches the file image format. If imagetype is 0, the function returns true when the file image format is recognized as a supported format. If the returned value is true, use GetHeight(), GetWidth() or GetType() to retrieve the basic image information.
See also:
ENUM_CXIMAGE_FORMATS

bool CxImage::Decode ( BYTE *  buffer,
DWORD  size,
DWORD  imagetype 
) [inherited]

Loads an image from memory buffer

Parameters:
buffer,: memory buffer
size,: size of buffer
imagetype,: file format, see ENUM_CXIMAGE_FORMATS
Returns:
true if everything is ok

bool CxImage::Decode ( CxFile hFile,
DWORD  imagetype 
) [inherited]

Loads an image from CxFile object

Parameters:
hFile,: file handle (CxMemFile or CxIOFile), with read access.
imagetype,: file format, see ENUM_CXIMAGE_FORMATS
Returns:
true if everything is ok
See also:
ENUM_CXIMAGE_FORMATS

bool CxImage::Decode ( FILE *  hFile,
DWORD  imagetype 
) [inherited]

Loads an image from file handle.

Parameters:
hFile,: file handle, with read access.
imagetype,: file format, see ENUM_CXIMAGE_FORMATS
Returns:
true if everything is ok

bool CxImage::Load ( const TCHAR *  filename,
DWORD  imagetype = 0 
) [inherited]

Reads from disk the image in a specific format.

Parameters:
filename,: file name
imagetype,: file format, see ENUM_CXIMAGE_FORMATS
Returns:
true if everything is ok

bool CxImage::LoadResource ( HRSRC  hRes,
DWORD  imagetype,
HMODULE  hModule = NULL 
) [inherited]

Loads an image from the application resources.

Parameters:
hRes,: the resource handle returned by FindResource().
imagetype,: file format, see ENUM_CXIMAGE_FORMATS.
hModule,: NULL for internal resource, or external application/DLL hinstance returned by LoadLibray.
Returns:
true if everything is ok


Generated on Thu Jan 31 20:11:32 2008 for CxImage by  doxygen 1.5.4