MIL_ID ImageBufId, | //in |
MIL_INT StartX, | //in |
MIL_INT StartY, | //in |
MIL_INT EndX, | //in |
MIL_INT EndY, | //in |
MIL_INT64 Mode, | //in |
MIL_INT *NbPixelsPtr, | //out |
const void *UserArrayPtr | //in |
This function reads pixel values from a user-defined array and writes them to the series of pixels, in the specified image, along the theoretical line defined by specified coordinates. The Bresenham algorithm is used to determine the theoretical line.
Specifies the identifier of the destination image buffer. This must be a single-band (monochrome) buffer.
If the specified buffer is an image buffer with an associated region of interest (ROI), an error will occur.
Specifies the horizontal pixel offset of the starting position of the line, relative to the top-left pixel of the destination buffer.
Specifies the vertical pixel offset of the starting position of the line, relative to the top-left pixel of the destination buffer.
Specifies the horizontal pixel offset of the finishing position on the line, relative to the top-left pixel of the destination buffer.
Specifies the vertical pixel offset of the finishing position on the line, relative to the top-left pixel of the destination buffer.
Specifies the operation mode. Reserved for future expansion. This parameter must be set to M_DEFAULT.
Specifies the address of the variable in which to write the number of pixels found along the theoretical line. You can set this parameter to M_NULL if you don't want this value to be evaluated.
Specifies the address of the user array containing the pixels to insert in the image buffer. Ensure that the user array contains all the pixel values to be written. To determine the number of pixel values required, you can set this parameter to M_NULL and pass a non-null address to NbPixelsPtr, which will store the size of the required array. In this case, nothing is written to the image buffer.
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |