SmoothingMode SmoothingMode SmoothingMode SmoothingMode Enum

定义

指定是否将平滑处理(抗锯齿)应用于直线、曲线和已填充区域的边缘。Specifies whether smoothing (antialiasing) is applied to lines and curves and the edges of filled areas.

public enum class SmoothingMode
public enum SmoothingMode
type SmoothingMode = 
Public Enum SmoothingMode
继承
SmoothingModeSmoothingModeSmoothingModeSmoothingMode

字段

AntiAlias AntiAlias AntiAlias AntiAlias 4

指定抗锯齿的呈现。Specifies antialiased rendering.

Default Default Default Default 0

指定不抗锯齿。Specifies no antialiasing.

HighQuality HighQuality HighQuality HighQuality 2

指定抗锯齿的呈现。Specifies antialiased rendering.

HighSpeed HighSpeed HighSpeed HighSpeed 1

指定不抗锯齿。Specifies no antialiasing.

Invalid Invalid Invalid Invalid -1

指定无效模式。Specifies an invalid mode.

None None None None 3

指定不抗锯齿。Specifies no antialiasing.

注解

DefaultNoneHighSpeed等效, 并指定未应用平滑的呈现。Default, None, and HighSpeed are equivalent and specify rendering without smoothing applied.

AntiAliasHighQuality等效, 并指定应用了平滑处理的呈现。AntiAlias and HighQuality are equivalent and specify rendering with smoothing applied.

备注

当使用枚举指定Graphics.SmoothingMode属性时, 它不SmoothingMode会影响文本。When the Graphics.SmoothingMode property is specified by using the SmoothingMode enumeration, it does not affect text. 若要设置文本呈现质量, 请使用Graphics.TextRenderingHint属性TextRenderingHint和枚举。To set the text rendering quality, use the Graphics.TextRenderingHint property and the TextRenderingHint enumeration.

备注

当使用枚举指定Graphics.SmoothingMode属性时, 它不会影响由路径渐变画笔SmoothingMode填充的区域。When the Graphics.SmoothingMode property is specified by using the SmoothingMode enumeration, it does not affect areas filled by a path gradient brush. 使用PathGradientBrush对象填充的区域以相同的方式呈现 (化名Graphics.SmoothingMode为), 而不考虑属性的设置。Areas filled by using a PathGradientBrush object are rendered the same way (aliased) regardless of the setting for the Graphics.SmoothingMode property.

适用于