CogImage16Range SetPixel Method Cognex VisionPro 9.10
Set the pixel and mask values at a given pixel space location. Note that setting VisibleValue to false on a CogImage16Range whose root currently has a null mask root will cause an appropriately sized and populated mask root to be created. The opposite is not true: setting the sole non-visible mask value to visible will not cause the mask root to be set to null.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.CorePlus (in Cognex.VisionPro.CorePlus.dll) Version: 79.0.0.0
Syntax

public void SetPixel(
	int X,
	int Y,
	bool VisibleValue,
	ushort PixelValue
)
Exceptions

ExceptionCondition
CogImageNoPixelsException If Allocated is false.
CogImageBadCoordException If X is less than zero or not less than Width, or if Y is less than zero or not less than Height.
See Also