MbufPut1d()函数

Synopsis

Put data from a user-supplied array into a 1D area of a buffer.

Format

void MbufPut1d(DestBufId, OffX, SizeX, UserArrayPtr)

MIL_ID DestBufId; Destination buffer identifier
long OffX; X pixel offset relative to destination buffer origin
long SizeX; Width of destination buffer area in which to put data
void *UserArrayPtr; Source user array

Description

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

The DestBufId parameter specifies the identifier of the destination buffer.

The OffX parameter specifies the horizontal offset of the destination buffer area in which to put data in relation to the destination buffer starting coordinate.

The SizeX parameter specifies the width of the destination buffer area in which to copy the data (starting from the specified offset OffX).

The UserArrayPtr parameter specifies the address of the user array from which to copy data into the destination buffer. Ensure that there are enough entries in the user array to fill the specified destination buffer area. MbufPut1d?assumes that the array is of the same data type as the destination buffer.

Note, for multi-band buffers, MbufPut1d behaves like MbufPutColor(DestBufId, M_PLANAR, M_ALL_BAND, UserArrayPtr), but puts the data in the specified one-dimensional region. Refer to MbufPutColor for more details.

See also

MbufPut, MbufPut2d, MbufPutColor, MbufGet, MbufGet1d, MbufGet2d, MbufGetColor