C# 클래스 SparrowSharp.Filters.ColorMatrix

A color matrix class containing an array of 20 floats arranged as a 4x5 matrix.
파일 보기 프로젝트 열기: fmotagarcia/sparrow-sharp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
NumValues int

보호된 프로퍼티들

프로퍼티 타입 설명
_m float[]

공개 메소드들

메소드 설명
AdjustBrightness ( float brightness ) : void

Changes the brightness. Typical values are in the range [-1, 1]. Values above zero will make the image brighter, values below zero will make it darker.

AdjustContrast ( float contrast ) : void

Changes the contrast. Typical values are in the range [-1, 1]. Values above zero will raise, values below zero will reduce the contrast.

AdjustHue ( float hue ) : void

Changes the hue. Typical values are in the range [-1, 1].

AdjustSaturation ( float saturation ) : void

Changes the saturation. Typical values are in the range [-1, 1]. Values above zero will raise, values below zero will reduce the saturation. '-1' will produce a grayscale image.

ColorMatrix ( float values = null ) : System

Initializes a color matrix with an array of 20 floats. If no value is specified it initializes with an identity matrix.

ConcatColorMatrix ( ColorMatrix colorMatrix ) : void

Concatenates the receiving color matrix with another one.

Identity ( ) : void

Changes the color matrix into an identity matrix.

Invert ( ) : void

Inverts the colors.

비공개 메소드들

메소드 설명
ConcatMatrix ( ColorMatrix target, float source ) : void

메소드 상세

AdjustBrightness() 공개 메소드

Changes the brightness. Typical values are in the range [-1, 1]. Values above zero will make the image brighter, values below zero will make it darker.
public AdjustBrightness ( float brightness ) : void
brightness float
리턴 void

AdjustContrast() 공개 메소드

Changes the contrast. Typical values are in the range [-1, 1]. Values above zero will raise, values below zero will reduce the contrast.
public AdjustContrast ( float contrast ) : void
contrast float
리턴 void

AdjustHue() 공개 메소드

Changes the hue. Typical values are in the range [-1, 1].
public AdjustHue ( float hue ) : void
hue float
리턴 void

AdjustSaturation() 공개 메소드

Changes the saturation. Typical values are in the range [-1, 1]. Values above zero will raise, values below zero will reduce the saturation. '-1' will produce a grayscale image.
public AdjustSaturation ( float saturation ) : void
saturation float
리턴 void

ColorMatrix() 공개 메소드

Initializes a color matrix with an array of 20 floats. If no value is specified it initializes with an identity matrix.
public ColorMatrix ( float values = null ) : System
values float
리턴 System

ConcatColorMatrix() 공개 메소드

Concatenates the receiving color matrix with another one.
public ConcatColorMatrix ( ColorMatrix colorMatrix ) : void
colorMatrix ColorMatrix
리턴 void

Identity() 공개 메소드

Changes the color matrix into an identity matrix.
public Identity ( ) : void
리턴 void

Invert() 공개 메소드

Inverts the colors.
public Invert ( ) : void
리턴 void

프로퍼티 상세

NumValues 공개적으로 프로퍼티

Returns the count of values (always 20).
public int NumValues
리턴 int

_m 보호되어 있는 프로퍼티

protected float[] _m
리턴 float[]