CRasterImage::Load![]()
int Load( const char* FileName, int StorageType = GL_RGB, int ImageType = IMAGE_BY_FILE_EXTENSION );
Parameters
| FileName | Name of the file the image will be loaded from. | ||||||||||
| StorageType | Storage type used to store the decompressed image. Can be one of the following
values:
|
||||||||||
| ImageType | Type of the image file. Can be one of the following values: | ||||||||||
|
Return Value
The return value is TRUE if Load method succeeded. The return value is FALSE if Load method failed.
Remarks
The Load method loads the image data from the file to the memory. The image is loaded from the file and stored into memory using either 3-byte RGB or 4-byte RGBA pixel format - depending on specified StorageType parameter. Previous content the object is destroyed by the Load method call.
Following JPEG file pixel-formats are supported:
Animated GIF files and TGA files with alpha channel are not supported.
See Also
![]()
| © 2005 Solid Graphics, All rights reserved. |
| To view this site, we require use of either Netscape Navigator 4.0 or higher or Internet Explorer 4.0 or higher. |