InitImage Method
Object List Next Object
Defined By: Bitmap
Description:
Initializes a Bitmap object that is being created from scratch using the
low-level read routines.
Declaration:
Sub InitImage(ByVal width As Long, ByVal height As Long, ByVal depth As Long,
ByVal ctabType As Long, ByVal ctabEntries As Long, ByVal bType As Long, ByVal
bitsToAlloc As Long)
Details:
The description of the Bitmap includes the:
Width and height in pixels
The depth of the Bitmap in bits (1, 4, 8, 16, 24, 32)
The type of Colormap to use (see the Mode property for a description of enum values).
The number of entries in the Colormap.
The bType argument is used to specify any type of bitmap compression that is supported
(see Compression property for a description of enum values). The last value is ‘bitsToAlloc,’ which specifies how many bytes of storage to allocate for the bitmap.
Specifying a value of 0 will allow InitImage to compute how much is needed.
See Also: Mode property, Compression property