CogPolygon FillMode Property Cognex VisionPro 9.7
The algorithm to be used to distinguish inside from outside.

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

public CogPolygonFillConstants FillMode { get; set; }

Property Value

Type: CogPolygonFillConstants
Events

Event TypeReason
CogPolygon Changed

Fires when the fill mode of the polygon changes.

The following state flag may be affected:

    Exceptions

    ExceptionCondition
    ArgumentException

    The fill mode is not in CogPolygonFillConstants.

    Remarks

    Sets or gets the algorithm used to distinguish between the inside and outside of the polygon. FillMode affects the way that DistanceToPoint(Double, Double) and CreateRLE(Byte, Byte) determine which points lie within a polygon.

    Default Value: EvenOdd

    See Also