EdgeMode EdgeMode EdgeMode EdgeMode Enum

定義

決定如何呈現非文字繪圖基本的邊緣。Determines how the edges of non-text drawing primitives are rendered.

public enum class EdgeMode
public enum EdgeMode
type EdgeMode = 
Public Enum EdgeMode
繼承

欄位

Aliased Aliased Aliased Aliased 1

將非文字繪圖基本的邊緣呈現為鋸齒邊緣。Render the edges of non-text drawing primitives as aliased edges.

Unspecified Unspecified Unspecified Unspecified 0

未指定邊緣模式。No edge mode is specified. 請不要變更非文字繪圖基本的目前邊緣模式。Do not alter the current edge mode of non-text drawing primitives. 這是預設值。This is the default value.

範例

下列範例示範如何使用SetEdgeMode設定別名的繪圖基本的邊緣模式的方法。The following example shows how to use the SetEdgeMode method to set the edge mode for a drawing primitive to Aliased.

// Set the edge mode to aliased for the visual and any descendant drawing primitives it has.
RenderOptions.SetEdgeMode((DependencyObject)myVisual, EdgeMode.Aliased);
' Set the edge mode to aliased for the visual and any descendant drawing primitives it has.
RenderOptions.SetEdgeMode(CType(myVisual, DependencyObject), EdgeMode.Aliased)

備註

文字物件一律會顯示使用反鋸齒功能,並不會影響設定的邊緣模式值。Text objects are always displayed by using anti aliasing, and are not affected by setting the edge mode value. 預設值為非文字繪圖基本項目,例如EllipsePolygon,是未指定。The default value for non-text drawing primitives, such as Ellipse and Polygon, is Unspecified.

當您設定的視覺物件的邊緣模式值時,所有子系繪圖基本的視覺物件會設定為相同Unspecified值。When you set the edge mode value of a visual object, all the child drawing primitives of that visual object are set to the same Unspecified value.

適用於