Spray Class

Applies a spray effect to an image.

Namespace: Aurigma.GraphicsMill.Transforms
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public sealed class Spray : MaskTransform

Remarks

Spray effect lies in spreading pixels randomly.

Examples

The following code gets the thumbnail from an image EXIF metadata, applies the Spray transform on it, and saves the result:

C#
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");
    }
}

Inheritance Hierarchy

Thread Safety

Static members of this type are not safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.

See Also

Reference

Manual