C# Class SparrowSharp.Filters.ColorMatrixFilter

Inheritance: FragmentFilter
Afficher le fichier Open project: fmotagarcia/sparrow-sharp Class Usage Examples

Méthodes publiques

Свойство Type Description
ColorMatrix ColorMatrix

Méthodes publiques

Méthode Description
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 of the image. 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.

ColorMatrixFilter ( ColorMatrix matrix = null ) : Sparrow.Core
ConcatColorMatrix ( ColorMatrix colorMatrix ) : void

Concatenates the current matrix with another one.

Invert ( ) : void

Inverts the colors of the filtered objects.

Reset ( ) : void

Changes the filter matrix back to the identity matrix.

Méthodes protégées

Méthode Description
ActivateWithPass ( int pass, Sparrow texture, Sparrow mvpMatrix ) : void
CreatePrograms ( ) : void

Private Methods

Méthode Description
GetFragmentShader ( ) : string
UpdateShaderMatrix ( ) : void

Method Details

ActivateWithPass() protected méthode

protected ActivateWithPass ( int pass, Sparrow texture, Sparrow mvpMatrix ) : void
pass int
texture Sparrow
mvpMatrix Sparrow
Résultat void

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 brightness ) : void
brightness 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 contrast ) : void
contrast 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 hue ) : void
hue 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 saturation ) : void
saturation float
Résultat void

ColorMatrixFilter() public méthode

public ColorMatrixFilter ( ColorMatrix matrix = null ) : Sparrow.Core
matrix ColorMatrix
Résultat Sparrow.Core

ConcatColorMatrix() public méthode

Concatenates the current matrix with another one.
public ConcatColorMatrix ( ColorMatrix colorMatrix ) : void
colorMatrix ColorMatrix
Résultat void

CreatePrograms() protected méthode

protected CreatePrograms ( ) : void
Résultat void

Invert() public méthode

Inverts the colors of the filtered objects.
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

Property Details

ColorMatrix public_oe property

The color matrix object used to apply the filter.
public ColorMatrix,SparrowSharp.Filters ColorMatrix
Résultat ColorMatrix