C# 클래스 SparrowSharp.Filters.FilterFactory

Helper class that allows quick creation Sparrow's built in filters.
파일 보기 프로젝트 열기: fmotagarcia/sparrow-sharp

공개 메소드들

메소드 설명
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.

메소드 상세

Blur() 공개 정적인 메소드

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
리턴 BlurFilter

ColorMatrix() 공개 정적인 메소드

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
리턴 ColorMatrixFilter

DropShadow() 공개 정적인 메소드

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
리턴 BlurFilter

Glow() 공개 정적인 메소드

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
리턴 BlurFilter