MbufGet1d()函数

Synopsis

Get data from a 1D area of a buffer and place it in a user-supplied array.

Format

void MbufGet1d(SrcBufId, OffX, SizeX, UserArrayPtr)

MIL_ID SrcBufId; Source buffer identifier
long OffX; X offset relative to source buffer origin
long SizeX; Width of source buffer area from which to get data
void *UserArrayPtr; Destination user array

Description

This function copies data from a specified one-dimensional area of a MIL source buffer to a user-supplied array.

Note, for multi-band buffers, this function linearly copies the data from the one-dimensional region of each band (RRR…GGG…BBB…).

The SrcBufId parameter specifies the identifier of the source buffer.

The OffX parameter specifies the horizontal offset (in pixels) of the required area, relative to the top-left corner pixel of the source buffer.

The SizeX parameter specifies the width of the required area of the source buffer.

The UserArrayPtr parameter specifies the address of the user array in which to copy the data from the source buffer. Ensure that the user array is large enough to accommodate the data to be copied from the source buffer. MbufGet1d assumes that the array is of the same data type as the source buffer.

See also

MbufGet, MbufGet2d, MbufGetColor, MbufPut, MbufPut1d, MbufPut2d, MbufPutColor