CRasterImage::CreateImage![]()
int CreateImage( int ImageWidth, int ImageHeight, int StorageType = GL_RGB );
| ImageWidth | Width of the image in pixels. |
| ImageHeight | Height of the image in pixels |
| StorageType | Type of the data storage for each image pixel. Can be either GL_RGB or GL_RGBA. The GL_RGB CreateImage parameter specifies OpenGL’s GL_RGB format and GL_BYTE type. The GL_RGBA CreateImage parameter specifies OpenGL’s GL_RGBA format and GL_BYTE type. |
Return Value
The return value is TRUE if CreateImage method succeeded. The return value is FALSE when CreateImage method failed.
Remarks
The CreateImage method allocates and initializes image memory buffer of the CRasterImage object. The buffer is initialized by 0xff values. Previous object’s buffer is destroyed by each CreateImage method call.
See Also
![]()
| © 2001 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. |