C# Class ImageProcessor.Imaging.Helpers.Effects

Provides reusable effect methods to apply to images.
Afficher le fichier Open project: JimBobSquarePants/ImageProcessor

Méthodes publiques

Méthode 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 méthode

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 . ///
Résultat System.Drawing.Bitmap

Glow() public static méthode

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.
Résultat System.Drawing.Bitmap

Trace() public static méthode

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). ///
Résultat System.Drawing.Bitmap

Vignette() public static méthode

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. ///
Résultat System.Drawing.Bitmap