PeachDrawing

PeachDrawing

RasterLayerEffects Class

Applies the LayerEffects of a LayerOptions to the pixels of a raster surface. A Canvas that draws layers through raster surfaces calls this from its ApplyLayerEffects; RasterCanvas does.

public static class RasterLayerEffects

Inheritance System.Object → RasterLayerEffects

Methods  
Apply(RasterSurface, IReadOnlyList<LayerEffect>) Applies effects to surface, in order, changing it in place.
GetInkMargin(IReadOnlyList<LayerEffect>) How far, on each axis, the given effects can spread ink beyond the shape they are applied to, in the canvas’s units: three standard deviations of a blur (past which a Gaussian is invisible), plus an offset for a drop shadow. Grow a layer’s region by this before drawing into it, so the spread is not cut off.