CRasterImage::Save

int Save( const char* FileName, int ImageType = IMAGE_BY_FILE_EXTENSION );

Parameters

FileName Name of the file the image will be saved into.
ImageType Type of the image file. Can be one of the following values:
IMAGE_BY_FILE_EXTENSIONThe Save method determines the image type by the file extension. If the file extension is .JPG, then the JPEG compression will be used to save the image. If the extension is .GIF then the GIF compression will be used to save the image. If the file extension is .BMP then the Microsoft BMP compression will be used to save the image. If the file extension is .TGA then the TARGA compression will be used to save load image.
IMAGE_JPEGThe JPEG compression will be used to save the image
IMAGE_GIFThe GIF compression will be used to save the image
IMAGE_BMPThe BMP compression will be used to save the image
IMAGE_TARGAThe TARGA compression will be used to save the image

Return Value

The return value is TRUE if Save method succeeded. The return values is FALSE if Save method failed.

Remarks

The Save method stores the current objectís image to the file.

See Also

CRasterImage class methods