CRasterImage::LoadThumbnail

bool  LoadThumbnail( const char* fileName, int width, int height, int rotation = 0, int storageType = GL_RGB, int imageType = IMAGE_BY_FILE_EXTENSION );

Parameters

fileName file name of image which thumbnail will be loaded
width width of thumbnail
height height of thumbnail
rotation angle in degrees by which the thumbnail will be rotated relative to original file image. Function behavior on values of this paremeter is the same as in the Rotate function.
storageType desired image storage type (pixel format) . Can be GL_RGB or GL_RGBA.
imageType values of this parameter are the same as in the Load function.

Return Value

true if function succeed. false in case of failure. Additional error inromation acn be retrieved by calling GetLasteErrorMessage() function.

Remarks

The LoadThumbnail function loads image's thumbnail from a file. For JPEG images loading thumbnail might be much faster than loading whole image and then resizing it.

See Also

CRasterImage class methods