PeachDrawing

PeachDrawing.RasterLayerEffects

RasterLayerEffects.GetInkMargin(IReadOnlyList<LayerEffect>) Method

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.

public static (double X,double Y) GetInkMargin(System.Collections.Generic.IReadOnlyList<PeachDrawing.Core.LayerEffect> effects);

Parameters

effects System.Collections.Generic.IReadOnlyList<LayerEffect>

the effects that will be applied

Returns

<System.Double,System.Double>
the margin to add on the left and right, and on the top and bottom

Exceptions

System.ArgumentNullException
effects is null