PeachDrawing

PeachDrawing.RasterCanvas

RasterCanvas.Erase(GraphicsPath) Method

Removes the pixels inside path (in user space, like every path this class draws): each pixel is scaled by one minus the path’s anti-aliased coverage, so an edge that is half inside keeps half its ink. This is the “destination-out” operation an outer box-shadow needs - the shadow is not painted under its own box (CSS Backgrounds 3 §7.1.1) - which no Canvas primitive expresses.

public void Erase(PeachDrawing.Core.GraphicsPath path);

Parameters

path GraphicsPath