FillRule 열거형
정의
Geometry에 포함된 PathFigure 개체의 교차 영역이 결합되어 Geometry의 영역을 구성하는 방식을 지정합니다.Specifies how the intersecting areas of PathFigure objects contained in a Geometry are combined to form the area of the Geometry.
public enum class FillRule
public enum FillRule
type FillRule =
Public Enum FillRule
- 상속
필드
EvenOdd | 0 | 해당 점에서 모든 방향으로 무한대로 광선을 그리고 광선이 교차하는 지정된 도형 내에서 경로 세그먼트 수를 계산하여 채우기 영역에 점이 있는지 여부를 결정하는 규칙입니다.Rule that determines whether a point is in the fill region by drawing a ray from that point to infinity in any direction and counting the number of path segments within the given shape that the ray crosses. 이 숫자가 홀수이면 점이 안에 있고, 짝수이면 밖에 있습니다.If this number is odd, the point is inside; if even, the point is outside. |
Nonzero | 1 | 해당 점에서 모든 방향으로 무한대로 광선을 그린 후 도형의 세그먼트가 광선과 교차하는 위치를 검사하여 경로의 채우기 영역에 점이 있는지 여부를 결정하는 규칙입니다.Rule that determines whether a point is in the fill region of the path by drawing a ray from that point to infinity in any direction and then examining the places where a segment of the shape crosses the ray. 0부터 시작하여 세그먼트가 왼쪽에서 오른쪽으로 광선과 교차할 때마다 1을 추가하고 경로 세그먼트가 오른쪽에서 왼쪽으로 광선과 교차할 때마다 1을 뺍니다.Starting with a count of zero, add one each time a segment crosses the ray from left to right and subtract one each time a path segment crosses the ray from right to left. 교차 수를 계산한 후 결과가 0이면 점이 경로의 밖에 있습니다.After counting the crossings, if the result is zero then the point is outside the path. 그렇지 않으면 점이 내부에 있습니다.Otherwise, it is inside. |