Property Antialiasing
Antialiasing
Gets or sets whether drawing operations use antialiased rendering. When true, shape edges are smoothed using coverage-based alpha blending. When false (the default), shapes are rendered with hard, aliased edges.
public bool Antialiasing { get; set; }
Property Value
Examples
var canvas = new Canvas(image) { Antialiasing = true };
canvas.DrawRectangle(
Rectangle.FromSize(10.3, 10.7, 200, 100),
new Color32(0, 0, 0),
thickness: 2);
Remarks
Antialiasing computes fractional pixel coverage at shape boundaries and blends the shape color with the existing background. Interior pixels that are fully covered are written at full speed without blending overhead.