SetPixel2 Method
Syntax
CWIMAQVision.SetPixel2 DestImage, Point [, PixelValueOrReal = 0] [, Imaginary = 0] [, RGBU64]
Return Type
On success, this method returns 0. On failure, this method returns a negative number.
Purpose
Changes a pixel value in an image.
Remarks
Use this method with all image types.
Parameters
DestImage As CWIMAQImage
The image whose pixel value the method sets.
Point As CWIMAQPoint
The coordinate of the pixel to set.
PixelValueOrReal As Variant
[Optional] The pixel replacement value. If the image is Complex, this parameter sets the real part of the pixel replacement value.
This parameter has a default value of 0.
Imaginary As Variant
[Optional] If the image is Complex, this parameter sets the imaginary part of the pixel replacement value.
This parameter has a default value of 0.
RGBU64 As Variant
[Optional] The value to set a pixel on an RGBU64 image, which is a 1D array of four integer elements—red, green, blue, and alpha—one for each channel.