FillRule 列舉

定義

指定 PathFigure 內含之 Geometry 物件的交集區域組合成 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
繼承
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. 從零開始計算,路徑線段每次從左到右與光線交會就加一,每次從右到右與光線交會就減一。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. 計算交會後,如果結果為零,則點即在路徑外。After counting the crossings, if the result is zero then the point is outside the path. 否則就在路徑內。Otherwise, it is inside.

適用於