C# Класс ImageProcessor.Imaging.Helpers.Effects

Provides reusable effect methods to apply to images.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

ApplyMask() публичный статический Метод

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 . ///
Результат System.Drawing.Bitmap

Glow() публичный статический Метод

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.
Результат System.Drawing.Bitmap

Trace() публичный статический Метод

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). ///
Результат System.Drawing.Bitmap

Vignette() публичный статический Метод

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. ///
Результат System.Drawing.Bitmap