Description

Change the pixel values of a line of the image.

Return Type

A Long value.  

The number of values set. Should be image.width*image.NumberOfChannels.

Syntax

object.PutLine (vLine, y, [Frame])

The PutLine Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McImage.
vLineRequired. A Variant value.

A VARIANT containing a SAFEARRAY containing the new pixel values. The number of values should be equal to the with of the image times the number of channels (width for gray scale, 3*width for color images). For color images, red, green, and blue values must be interlaced.

yRequired. A Long value.

The 0-based line number.

FrameOptional. A Long value.

Optional. 0-based frame number, McActiveFrame, McLastFrame. Default = McActiveFrame.

Remarks

See CreateRegionAccess for a more controlled way to set pixel values. In particular when region masking is needed.