public bool AntiAliasing { get; set; }
Public Property AntiAliasing As Boolean
Get
Set
public:
property bool AntiAliasing {
bool get ();
void set (bool value);
}
member AntiAliasing : bool with get, set
When anti-aliasing is enabled, the shapes are drawn with smooth edges, which affects both shape filling and path drawing.
Anti-aliasing uses 16x16 subpixels per pixel to achieve smooth edges. This means that anti-aliased drawing is slower than aliased drawing.
The following images provide a few examples regarding anti-aliasing:
Description | Image Example |
---|---|
Filling a polygon with AntiAliasing = . | ![]() |
Filling a polygon with AntiAliasing = . | ![]() |
Drawing a Path with AntiAliasing = , FastThinLines = . This is the default configuration of these properties. | ![]() |
Drawing a Path with AntiAliasing = , FastThinLines = , DrawPathPixelOffset = Half. Note that the lines are more jagged than above. | ![]() |
Drawing a Path with AntiAliasing = , DrawPathPixelOffset = Half. The lines are much smoother. | ![]() |
Drawing an ellipse with AntiAliasing = , FastThinLines = . The image is zoomed in for better visibility. | ![]() |
Drawing an ellipse with AntiAliasing = , FastThinLines = , DrawPathPixelOffset = Half. The image is zoomed in for better visibility. | ![]() |
Drawing an ellipse with AntiAliasing = , DrawPathPixelOffset = Half. The image is zoomed in for better visibility. | ![]() |