IMcDibAccessGetDibBytes Method
|
|
Returns a VARIANT holding a 2-D array that are the bytes for
a 24-bit BGR, anti-raster order DIB.
Namespace:
MediaCy.IQL.Engine
Assembly:
MediaCy.IQL.Engine (in MediaCy.IQL.Engine.dll) Version: 10.0.6912.0
SyntaxFunction GetDibBytes (
lFrame As Integer,
lChannelToProcess As Integer,
dLeftImage As Double,
dTopImage As Double,
lDibSizeX As Integer,
lDibSizeY As Integer,
dMagnificationX As Double,
dMagnificationY As Double,
<OutAttribute> ByRef pvarBITMAPINFOHEADER As Object
) As Object
Parameters
- lFrame
- Type: SystemInt32
The frame to get the DIB from. May be McActiveFrame, McLastFrame
or a frame index from zero up through FrameCount-1 of the ParentPixelBuffer. - lChannelToProcess
- Type: SystemInt32
If a DIB is to be gotten from a single channel, then
this should be set to the zero-based channel number (e.g., Red=0, Blue=1,
Green=2). Otherwise, it should be mcwcAllChannels (-1). - dLeftImage
- Type: SystemDouble
The starting, left pixel in image coordinates. - dTopImage
- Type: SystemDouble
The starting, top pixel in image coordinates. - lDibSizeX
- Type: SystemInt32
The width of the returned DIB array (starting at dLeftImage) in
pixels (not bytes).The height of the returned DIB array (starting at dTopImage) in
scan lines. - lDibSizeY
- Type: SystemInt32
- dMagnificationX
- Type: SystemDouble
The magnification of image pixels along the X axis.
Magnifications greater than 1 uses pixel duplication, while magnifications
less than 1 use pixel skipping. - dMagnificationY
- Type: SystemDouble
The magnification of image pixels along the Y axis.
Magnifications greater than 1 uses pixel duplication, while magnifications
less than 1 use pixel skipping. - pvarBITMAPINFOHEADER
- Type: SystemObject
On exit this Variant is set to any array of Byte that
maps directly onto a BITMAPINFOHEADER structure that describes the returned
array of BGR triplets.
Return Value
Type:
ObjectA 2-D Byte array that is a reverse raster, DWORD aligned BGR DIB of the
requested size, starting at the the requested image coordinates, at the
requested magnification.
RemarksCoordinates outside of the image bounds are clipped to the image bounds.
Image pixel channel values are passed through an optional, per-color Byte lookup
table after being cast to BGR. Call SetDisplayLut to assign these LUT's.
See Also