imgarr
ColorClass=2
is assumed. Valid values are 2, 16, and 256.ColorsUsed
Compression
'None'
'RLE4'
'RLE8'
Palette
SystemPalette
You must specify a color table to be saved with the DIB file, or an error is returned. The Palette and SystemPalette keywords let you specify a color table.
DC_WRITE_DIB exports DIB images from PV-WAVE. It handles: 1) opening the file, 2) assigning it a logical unit number (LUN), and 3) closing the file when you are done writing the data.
If imgarr is not a 2- or 3-dimensional byte array, the function DC_WRITE_DIB returns an error status and no data is written to the output file.
maverick
is a 512-by-512 byte array, the function call:
status = DC_WRITE_DIB('mav.gif', maverick, $ ColorClass = 256, Compression = None', $ /SystemPalette)
mav.gif
and uses it to store the system color table and the image data contained in the variable maverick
. The created DIB file is not compressed and has a color class of 256.