C# 클래스 ImageProcessor.Imaging.Helpers.Effects

Provides reusable effect methods to apply to images.
파일 보기 프로젝트 열기: JimBobSquarePants/ImageProcessor

공개 메소드들

메소드 설명
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