C# Class ImageProcessor.Imaging.Helpers.Effects

Provides reusable effect methods to apply to images.
ファイルを表示 Open project: JimBobSquarePants/ImageProcessor

Public Methods

Method Description
ApplyMask ( Image source, Image mask ) : Bitmap

Applies the given image mask to the source.

Glow ( Image source, Color baseColor, Rectangle rectangle = null ) : Bitmap

Adds a diffused glow (inverted vignette) effect to the source image based on the given color.

Trace ( Image source, Image destination, byte threshold ) : Bitmap

Traces the edges of a given Image.

Vignette ( Image source, Color baseColor, Rectangle rectangle = null, bool invert = false ) : Bitmap

Adds a vignette effect to the source image based on the given color.

Method Details

ApplyMask() public static method

Applies the given image mask to the source.
/// Thrown if the two images are of different size. ///
public static ApplyMask ( Image source, Image mask ) : Bitmap
source Image /// The source . ///
mask Image /// The mask . ///
return System.Drawing.Bitmap

Glow() public static method

Adds a diffused glow (inverted vignette) effect to the source image based on the given color.
public static Glow ( Image source, Color baseColor, Rectangle rectangle = null ) : Bitmap
source Image The source.
baseColor Color to base the vignette on.
rectangle System.Drawing.Rectangle The rectangle to define the bounds of the area to vignette. If null then the effect is applied /// to the entire image.
return System.Drawing.Bitmap

Trace() public static method

Traces the edges of a given Image.
public static Trace ( Image source, Image destination, byte threshold ) : Bitmap
source Image /// The source . ///
destination Image /// The destination . ///
threshold byte /// The threshold (between 0 and 255). ///
return System.Drawing.Bitmap

Vignette() public static method

Adds a vignette effect to the source image based on the given color.
public static Vignette ( Image source, Color baseColor, Rectangle rectangle = null, bool invert = false ) : Bitmap
source Image /// The source. ///
baseColor Color /// to base the vignette on. ///
rectangle System.Drawing.Rectangle /// The rectangle to define the bounds of the area to vignette. If null then the effect is applied /// to the entire image. ///
invert bool /// Whether to invert the vignette. ///
return System.Drawing.Bitmap