Back to Devexpress

DXGraphics.SmoothingMode Property

corelibraries-devexpress-dot-drawing-dot-dxgraphics-04dfd843.md

latest2.9 KB
Original Source

DXGraphics.SmoothingMode Property

Gets or sets the rendering quality.

Namespace : DevExpress.Drawing

Assembly : DevExpress.Drawing.v25.2.dll

NuGet Package : DevExpress.Drawing

Declaration

csharp
public DXSmoothingMode SmoothingMode { get; set; }
vb
Public Property SmoothingMode As DXSmoothingMode

Property Value

TypeDescription
DXSmoothingMode

An enumeration value that indicates whether lines, curves, and the edges of filled areas use smoothing (also called antialiasing).

|

Available values:

NameDescription
Default

Specifies no antialiasing.

| | HighSpeed |

Specifies no antialising.

| | HighQuality |

Specifies antialiased rendering.

| | None |

Specifies no antialising.

| | AntiAlias |

Specifies antialiased rendering.

| | Invalid |

Specifies an invalid mode.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SmoothingMode property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-chart-create-custom-legend-radio-buttons-to-control-visibility-of-a-chart-series/CS/MainForm.cs#L46

csharp
using (DXGraphics graphics = DXGraphics.FromImage(bitmap)) {
    graphics.SmoothingMode = DXSmoothingMode.HighQuality;
    Color seriesColor = GetSeriesColor(e.Series, chartControl);

winforms-chart-create-custom-legend-radio-buttons-to-control-visibility-of-a-chart-series/VB/MainForm.vb#L56

vb
Using graphics As DXGraphics = DXGraphics.FromImage(bitmap)
    graphics.SmoothingMode = DXSmoothingMode.HighQuality
    Dim seriesColor As Color = GetSeriesColor(e.Series, chartControl)

See Also

DXGraphics Class

DXGraphics Members

DevExpress.Drawing Namespace