System.Drawing.Drawing2D.SmoothingMode Enumeration

Specifies whether smoothing (antialiasing) is applied to lines and curves and the edges of filled areas.

Syntax

public enum SmoothingMode

Remarks

SmoothingMode.Default, SmoothingMode.None, and SmoothingMode.HighSpeed are equivalent and specify rendering without smoothing applied.

SmoothingMode.AntiAlias and SmoothingMode.HighQuality are equivalent and specify rendering with smoothing applied.

Note:

When the System.Drawing.Graphics.SmoothingMode property is specified by using the System.Drawing.Drawing2D.SmoothingMode enumeration, it does not affect text. To set the text rendering quality, use the System.Drawing.Graphics.TextRenderingHint property and the System.Drawing.Text.TextRenderingHint enumeration.

Note:

When the System.Drawing.Graphics.SmoothingMode property is specified by using the System.Drawing.Drawing2D.SmoothingMode enumeration, it does not affect areas filled by a path gradient brush. Areas filled by using a System.Drawing.Drawing2D.PathGradientBrush object are rendered the same way (aliased) regardless of the setting for the System.Drawing.Graphics.SmoothingMode property.

Members

Member NameDescription
AntiAlias

Specifies antialiased rendering.

Default

Specifies no antialiasing.

HighQuality

Specifies antialiased rendering.

HighSpeed

Specifies no antialiasing.

Invalid

Specifies an invalid mode.

None

Specifies no antialiasing.

Requirements

Namespace: System.Drawing.Drawing2D
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0