SmoothingMode Enumeration

 

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

Namespace:   System.Drawing.Drawing2D
Assembly:  System.Drawing (in System.Drawing.dll)

public enum SmoothingMode

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.

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

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

System_CAPS_noteNote

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

System_CAPS_noteNote

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

.NET Framework
Available since 1.1
Return to top
Show: