EdgeMode 枚举

定义

确定非文本绘图基元的边缘的呈现方式。Determines how the edges of non-text drawing primitives are rendered.

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

字段

Aliased 1

将非文本绘图基元的边缘呈现为锯齿边缘。Render the edges of non-text drawing primitives as aliased edges.

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.

适用于