SECImage::LoadImage

Loads image data from an image file.

Defined in: SECIMAGE.cpp

Syntax

BOOL LoadImage(LPCTSTR lpszFileName);

BOOL LoadImage(CFile* pFile);

Return Value

Nonzero if successful; otherwise 0.

Parameters

lpszFileName

Filename to load image from.

pFile

File to load image from.

Comments

Loads an image from a file.

The derived image subclasses will actually convert the image data from the native image format to the intermediate format used by SECImage.

The derived image classes allocate memory to store the image data. If not enough memory is available to hold the image, LoadImage will return an error condition.

If the loaded image uses a format of 8 bits per pixel or less, LoadImage will read a colormap from the image and create a CPalette stored as member data m_pPalette. If the image uses 24 bits per pixel or more, no palette is created.

When loaded, image data is automatically converted to an intermediate format associated with SECImage.

See Also

SECImage  SaveImage  ConvertImage  CopyImage