Applies a spray effect to an image.
Namespace:
Aurigma.GraphicsMill.Transforms
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public sealed class Spray : MaskTransform
The following code gets the thumbnail from an image EXIF metadata, applies the Spray transform on it, and saves the result:
using (var jpegReader = new JpegReader(@"Images\in.jpg")) { using (var thumbnail = (Bitmap) (jpegReader.Exif[ExifDictionary.Thumbnail])) { //Apply Spray transform thumbnail.Transforms.Spray(20, 12, FadeType.Linear, 0, RgbColor.White); //Save the result thumbnail.Save(@"Images\out.jpg"); } }