int CreateImage( int ImageWidth, int ImageHeight, int StorageType = GL_RGB );

ImageWidth Width of the image in pixels.
ImageHeight Height of the image in pixels
StorageTypeType 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.


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

CRasterImage class methods