MaskGraphic SetMaskAlpha Method Cognex VisionPro 9.23

Set just the Alpha component of the color associated with the specified mask value. The Blue, Green, and Red components of that color entry are unchanged.

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.24.0.0
Syntax

public void SetMaskAlpha(
	byte maskVal,
	byte alphaVal
)

Parameters

maskVal
Type: System Byte
The mask pixel value.
alphaVal
Type: System Byte
The desired Alpha value. Zero means fully transparent, while 255 means fully opaque.
Remarks

Changed Raised when the color map changes.

See Also