BmpImage

The BmpImage method writes the whole image in the primary imagespace to Windows BMP format.

BmpImage bTrueColor, sFileName

Parameters

bTrueColor
Specifies whether image will be written as a true color (24bit) bitmap. True will create true color image, False will create paletted image. The palette size is based on size of indexed color table declared in the CreateImage or ChangePaletteSize method.

sFileName
String specifying the name of the file to write to. If sFileName is a zero length string, the result BMP image will be produces as SAFEARRAY return value.

Remarks

In some cases you may need to call the BuildPalette method if you create paletted image.