MIL_ID SrcBufId, | //in |
MIL_INT OffX, | //in |
MIL_INT OffY, | //in |
MIL_INT SizeX, | //in |
MIL_INT SizeY, | //in |
void *UserArrayPtr | //out |
This function copies data from a specified two-dimensional area of a MIL source buffer to a user-supplied array. If the source buffer has multiple bands, this function linearly copies the data from the specified two-dimensional area of each band (for example, RRR...GGG...BBB...). The internal data format of the source buffer need not match the data format of the user-supplied array (planar); an internal conversion will be performed if necessary. Note, however, if the formats do match, the operation will be much faster. For more information, refer to MbufGetColor2d() with M_PLANAR.
If the specified buffer is a binary image buffer, any extra bits to complete a byte in the array are undefined.
If the source buffer is compressed, MIL decompresses the data before copying it to the user-supplied array.
Specifies the identifier of the source buffer.
If the specified buffer is an image buffer with an associated region of interest (ROI), an error will occur.
Specifies the horizontal offset of the required area, relative to the top-left coordinate of the source buffer.
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |