PeachDrawing
PeachDrawing.Filters.DropShadow
DropShadow.Apply(RasterSurface, int, int, double, double, byte, byte, byte, byte) Method
Adds a shadow under the pixels of surface in place: its alpha, tinted with the premultiplied shadow colour (r, g, b, a), moved by (dx, dy) pixels, and blurred with standard deviations sigmaX and sigmaY pixels.
public static void Apply(PeachDrawing.Core.RasterSurface surface, int dx, int dy, double sigmaX, double sigmaY, byte r, byte g, byte b, byte a);
Parameters
surface RasterSurface
dx System.Int32
dy System.Int32
sigmaX System.Double
sigmaY System.Double
Remarks
Offsets are rounded to whole pixels; at the raster resolutions in use a rounding error is a small fraction of a point.