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.

範例

下列範例顯示如何使用RenderOptions.SetEdgeMode方法, 將繪圖基本類型的邊緣模式設定為: AliasedThe following example shows how to use the RenderOptions.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) 的預設值為UnspecifiedThe default value for non-text drawing primitives, such as Ellipse and Polygon, is Unspecified.

當您設定視覺物件的邊緣模式值時, 該視覺物件的所有子繪製基本專案都會設定為相同EdgeMode的值。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 EdgeMode value.

適用於