The StartDibAccessVariant method is used to allow access to pixels in the Device Independent Bitmap (DIB). This method is equivalent to the StartDibAccess method but can be used in scripting languages that require variant types. This method is to be used in conjunction with the EndDibAccessVariant method.
Parameters
Name | Explanation |
---|---|
hDib | The raster image memory handle (supports 1, 4, 8, 16. 24, and 32 bit images) |
DibNo | The parameter that retrieves the identification number of the hDIB |
Return Value
Returns True (nonzero) if successful, otherwise returns False (0).
Explanation
The StartDibAccessVariant method is
used to allow access to pixels in the Device Independent Bitmap
(DIB). This method is equivalent to the StartDibAccess method but can be
used in scripting languages that require variant types. This
method is to be used in conjunction with the EndDibAccessVariant method. The
DibNo is the identification number of the hDib used by the GetDibPixelVariant, SetDibPixelVariant, and EndDibAccessVariant
methods.
To access the DIB and manipulate pixel data, you must use the
following methods as a group:
StartDibAccessVaraint
|
GetDibPixelVariant, SetDibPixelVariant
|
EndDibAccessVariant