C# Class SparrowSharp.Filters.FilterFactory

Helper class that allows quick creation Sparrow's built in filters.
Datei anzeigen Open project: fmotagarcia/sparrow-sharp

Public Methods

Method Description
Blur ( float blur = 1.0f, float resolution = 1.0f ) : BlurFilter

Creates a blur filter on the object with the specified parameters

ColorMatrix ( ColorMatrix colorMatrix = null ) : ColorMatrixFilter

Creates a color matrix filter wit the specified color matrix. If the matrix is not specified it will use an identity matrix (that does nothing)

DropShadow ( float distance = 4.0f, float angle = 0.785f, uint color = 0x000000, float alpha = 0.5f, float blur = 1.0f, float resolution = 0.5f ) : BlurFilter

Creates a drop shadow with a specified distance, angle, color, alpha, blur and resolution.

Glow ( uint color = 0xFF00FF, float alpha = 0.5f, float blur = 1.0f, float resolution = 0.5f ) : BlurFilter

Creates a glow with a specified color, alpha, blur and resolution.

Method Details

Blur() public static method

Creates a blur filter on the object with the specified parameters
public static Blur ( float blur = 1.0f, float resolution = 1.0f ) : BlurFilter
blur float
resolution float
return BlurFilter

ColorMatrix() public static method

Creates a color matrix filter wit the specified color matrix. If the matrix is not specified it will use an identity matrix (that does nothing)
public static ColorMatrix ( ColorMatrix colorMatrix = null ) : ColorMatrixFilter
colorMatrix ColorMatrix
return ColorMatrixFilter

DropShadow() public static method

Creates a drop shadow with a specified distance, angle, color, alpha, blur and resolution.
public static DropShadow ( float distance = 4.0f, float angle = 0.785f, uint color = 0x000000, float alpha = 0.5f, float blur = 1.0f, float resolution = 0.5f ) : BlurFilter
distance float
angle float
color uint
alpha float
blur float
resolution float
return BlurFilter

Glow() public static method

Creates a glow with a specified color, alpha, blur and resolution.
public static Glow ( uint color = 0xFF00FF, float alpha = 0.5f, float blur = 1.0f, float resolution = 0.5f ) : BlurFilter
color uint
alpha float
blur float
resolution float
return BlurFilter