SkiaSharp effects
The SkiaSharp SKPaint
class defines six properties that can be classified under the general term of effects. These are properties that alter the normal display of graphics in some way. The SkiaSharp effects fall into six categories:
Path Effects
Set the PathEffect
property of SKPaint
to an object of type SKPathEffect
to display dashed lines, or to stroke or fill an area with a pattern created from paths. The path effect was covered earlier in this series in the article Path Effects in SkiaSharp.
Shaders
Set the Shader
property of SKPaint
to an object of type SKShader
to display linear or circular gradients, tiled bitmaps, and Perlin noise patterns.
Blend Modes
Set the BlendMode
property of SKPaint
to a member of the SKBlendMode
enumeration to govern what happens when a source graphic is displayed on a destination. SkiaSharp supports all the CSS compositing and blend modes, including the Porter-Duff modes, separable blend modes, and non-separable blend modes.
Mask Filters
Set the MaskFilter
property of SKPaint
to an object of type SKMaskFilter
for blurs and other alpha effects.
Image Filters
Set the ImageFilter
property of SKPaint
to an object of type SKImageFilter
for blurring bitmaps and creating drop shadows, embossing, or engraving effects.
Color Filters
Set the ColorFilter
property of SKPaint
to an object of type SKColorFilter
to alter colors using tables or matrix transforms.
All the sample code for these articles are in the sample. From the home page, select SkiaSharp Effects.