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

BmpImage bTrueColor, sFileName


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.

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.


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