| Customize Help
| Save Settings


Function Map
Put data from a user-supplied array into a one-dimensional area of a buffer.
void MbufPut1d(
MIL_ID DestBufId, //in
MIL_INT OffX, //in
MIL_INT SizeX, //in
const void *UserArrayPtr //in

This function copies data from a user-supplied array to a specific one-dimensional area of the specified MIL destination buffer. If the destination buffer has multiple bands, MIL copies the data from the user-supplied array to the destination buffer sequentially. The internal data format of the user-supplied array need not match the data format of the MIL destination buffer (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 MbufPutColor2d() with M_PLANAR.

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see if there is complementary information.
This function is not supported on the selected boards.

Specifies the identifier of the destination 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 destination buffer area in which to put data, relative to the destination buffer's top-left pixel.


Specifies the width of the destination buffer area in which to put the data.

Accepts the following address:

Specifies the address of the user array from which to put data into the destination buffer. Ensure that user array is large enough to contain the data to be copied into the destination buffer.

Compilation information
Header Include mil.h.
Library Use mil.lib.
DLL Requires mil.dll.