PeachDrawing

PeachDrawing.RasterCanvas

RasterCanvas.PushAntiAlias(bool) Method

Turns anti-aliasing of the shapes drawn from now on on or off, until the matching PopAntiAlias(). Calls nest: each PushAntiAlias is undone by one PopAntiAlias, like PushClip(Rect) and PushTransform(Matrix3x2). This replaces the untyped SetAntiAliasSmoothingMode()/ReturnPreviousSmoothingMode(object) pair, which it is built on by default.

public override void PushAntiAlias(bool enabled);

Parameters

enabled System.Boolean

whether edges are smoothed

Remarks

The default can only switch smoothing <em>on</em> (that is all SetAntiAliasSmoothingMode() offers): asking for false leaves the canvas as it was. A canvas that can really turn it off, such as a raster one, overrides this and PopAntiAlias().