EdgeMode 列挙型
定義
テキスト以外の描画プリミティブの端を、どのようにレンダリングするかを決定します。Determines how the edges of non-text drawing primitives are rendered.
public enum class EdgeMode
public enum EdgeMode
type EdgeMode =
Public Enum 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メソッドを使用して描画プリミティブのエッジモードをにAliased
設定する方法を示しています。The 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. Ellipse Unspecified
やなど、テキスト以外の描画プリミティブの既定値はです。PolygonThe 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.