Synopsis
Write a specified series of pixels within specified coordinates, along a theoretical line.
Format
void MbufPutLine(ImageBufId, StartX, StartY, EndX, EndY, Mode, NumbPixelsPtr, UserArrayPtr)
MIL_ID ImageBufId; | Image buffer identifier |
long StartX; | X start position on the line |
long StartY; | Y start position on the line |
long EndX; | X end position on the line |
long EndY; | Y end position on the line |
long Mode; | Operation mode |
long *NumPixelsPtr | Number of pixels |
void *UserArrayPtr; | Source user array |
Description
This function reads a series of pixels from a user-defined array and writes them within specified coordinates (along a theoretical line) of a specified image. The Bresenham algorithm is used to determine the theoretical line.
The ImageBufId parameter specifies the identifier of the destination image buffer. This must be a single-band (monochrome) buffer.
The StartX and StartY parameters specify the horizontal and vertical offsets (in pixels) of the starting position of the line, relative to the top-left corner pixel of the source buffer.
The EndX and EndY parameters specify the horizontal and vertical offsets (in pixels) of the finishing position on the line, relative to the top-left corner pixel of the source buffer.
The Mode parameter specifies the operation mode. This parameter must be set to M_DEFAULT.
The NumPixelsPtr parameter specifies the address of the variable from which to read the number of pixels to be written along the theoretical line. If M_NULL, the number of pixels is not available.
The UserArrayPtr parameter specifies the address of the user array from which to read the pixels to insert in the image buffer. Ensure that the user array contains all the pixels to be inserted. MbufPutLine assumes that the array is of the same data type as the destination buffer. If this parameter is set to M_NULL, the pixels are not inserted; however, if NumPixelsPtr is not M_NULL, the number of pixels to be inserted can be known.
See also
Thanks a lot, Helpful stuff. doxycycline bnf
You revealed this very well. north west pharmacy canada
Appreciate it. Loads of forum posts.
canadian pharcharmy
You revealed this fantastically! north west pharmacy canada
Cheers. Lots of information!
lisinopril 10mg
Thanks a lot! Helpful stuff! phenergan generic