CogMaskGraphic GetTransparencyMap Method Cognex VisionPro 9.23
Controls transparency of mask values when displayed. The transparency value may be any integer between 0 (fully opaque) and 100 (fully transparent) inclusive.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 91.0.0.0
Syntax

public CogMaskGraphicTransparencyConstants GetTransparencyMap(
	byte maskVal
)

Return Value

Type: CogMaskGraphicTransparencyConstants
Events

Event TypeReason
CogMaskGraphic Changed

Fires when the transparency value changes.

The following state flag may be affected:

Exceptions

ExceptionCondition
ArgumentException

Value is not in the range 0 to 100.

Remarks

Returns the transparency constant that corresponds to the specified maskVal pixel value.

See Also