C# Класс FairyGUI.ColorFilter

Наследование: IFilter
Показать файл Открыть проект Примеры использования класса

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

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

Приватные методы

Метод Описание
UpdateMatrix ( ) : 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 value ) : void
value 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 value ) : void
value float
Результат void

AdjustHue() публичный Метод

Changes the hue of the image. Typical values are in the range (-1, 1).
public AdjustHue ( float value ) : void
value 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 sat ) : void
sat float
Результат void

ColorFilter() публичный Метод

public ColorFilter ( ) : System
Результат System

ConcatValues() публичный Метод

public ConcatValues ( ) : void
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Invert() публичный Метод

public Invert ( ) : void
Результат void

Reset() публичный Метод

Changes the filter matrix back to the identity matrix
public Reset ( ) : void
Результат void

Tint() публичный Метод

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).
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void