C# Class FairyGUI.ColorFilter

Inheritance: IFilter
Afficher le fichier Open project: fairygui/FairyGUI-unity Class Usage Examples

Méthodes publiques

Méthode Description
AdjustBrightness ( float value ) : 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 value ) : 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 value ) : void

Changes the hue of the image. Typical values are in the range (-1, 1).

AdjustSaturation ( float sat ) : 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.

ColorFilter ( ) : System
ConcatValues ( ) : void

Dispose ( ) : void
Invert ( ) : void
Reset ( ) : void

Changes the filter matrix back to the identity matrix

Tint ( Color color, float amount = 1.0f ) : void

Tints the image in a certain color, analog to what can be done in Adobe Animate.

Update ( ) : void

Private Methods

Méthode Description
UpdateMatrix ( ) : void

Method Details

AdjustBrightness() public méthode

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 value ) : void
value float
Résultat void

AdjustContrast() public méthode

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 value ) : void
value float
Résultat void

AdjustHue() public méthode

Changes the hue of the image. Typical values are in the range (-1, 1).
public AdjustHue ( float value ) : void
value float
Résultat void

AdjustSaturation() public méthode

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 sat ) : void
sat float
Résultat void

ColorFilter() public méthode

public ColorFilter ( ) : System
Résultat System

ConcatValues() public méthode

public ConcatValues ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Invert() public méthode

public Invert ( ) : void
Résultat void

Reset() public méthode

Changes the filter matrix back to the identity matrix
public Reset ( ) : void
Résultat void

Tint() public méthode

Tints the image in a certain color, analog to what can be done in Adobe Animate.
public Tint ( Color color, float amount = 1.0f ) : void
color Color the RGB color with which the image should be tinted.
amount float the intensity with which tinting should be applied. Range (0, 1).
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void