PeachDrawing
PeachDrawing.Filters
DropShadow Class
CSS drop-shadow() (Filter Effects 1 §8.3): “a blurred, offset version of the input image’s alpha mask drawn in a
particular colour, composited below the image”. The shadow follows the real alpha shape of what was painted - glyphs,
a PNG’s transparent corners, a clipped outline - not its bounding box.
public static class DropShadow
Inheritance System.Object → DropShadow
| Methods | |
|---|---|
| Apply(RasterSurface, int, int, double, double, byte, byte, byte, byte) | 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. |