C# Class LitDev.LDEffect

ファイルを表示 Open project: litdev1/LitDev

Public Methods

Method Description
Bloom ( Primitive shapeName, Primitive properties ) : void

Apply a bloom effect.

Blur ( Primitive shapeName, Primitive properties ) : void

Apply a blur effect.

Clear ( Primitive shapeName ) : void

Clear effects.

ColourTone ( Primitive shapeName, Primitive properties ) : void

Apply a colour tone effect.

DropShaddow ( Primitive shapeName, Primitive properties ) : void

Apply a drop shaddow effect.

Embossed ( Primitive shapeName, Primitive properties ) : void

Apply an embossed effect.

Magnify ( Primitive shapeName, Primitive properties ) : void

Apply a magnify effect.

Monochrome ( Primitive shapeName, Primitive properties ) : void

Apply a monochrome effect.

Pixelate ( Primitive shapeName, Primitive properties ) : void

Apply a pixelate effect.

Ripple ( Primitive shapeName, Primitive properties ) : void

Apply a ripple effect.

Sharpen ( Primitive shapeName, Primitive properties ) : void

Apply a sharpen effect.

Swirl ( Primitive shapeName, Primitive properties ) : void

Apply a swirl effect.

Private Methods

Method Description
ExtractDll ( ) : void
SetEffect ( string shapeName, eEffect effect, Primitive properties ) : void

Method Details

Bloom() public static method

Apply a bloom effect.
public static Bloom ( Primitive shapeName, Primitive properties ) : void
shapeName Primitive The shape to apply the effect to.
properties Primitive An array of optional ("" for none) properties, indexed by the property name: /// BaseIntensity (default 1) /// BaseSaturation (default 1) /// BloomIntensity (default 1.25) /// BloomSaturation (default 1) /// Threshold (default 0.25) ///
return void

Blur() public static method

Apply a blur effect.
public static Blur ( Primitive shapeName, Primitive properties ) : void
shapeName Primitive The shape to apply the effect to.
properties Primitive An array of optional ("" for none) properties, indexed by the property name: /// KernelType (default "Gaussian" or "Box") /// Radius (default 5) ///
return void

Clear() public static method

Clear effects.
public static Clear ( Primitive shapeName ) : void
shapeName Primitive The shape to clear the effects from.
return void

ColourTone() public static method

Apply a colour tone effect.
public static ColourTone ( Primitive shapeName, Primitive properties ) : void
shapeName Primitive The shape to apply the effect to.
properties Primitive An array of optional ("" for none) properties, indexed by the property name: /// Desaturation (default 0.5) /// ToneAmount (default 0.5) /// LightColor (default "#FFE580") /// DarkColor (default "#338000") ///
return void

DropShaddow() public static method

Apply a drop shaddow effect.
public static DropShaddow ( Primitive shapeName, Primitive properties ) : void
shapeName Primitive The shape to apply the effect to.
properties Primitive An array of optional ("" for none) properties, indexed by the property name: /// BlurRadius (default 5) /// Color (default "Black") /// Direction (default 315) /// Opacity (default 1) /// ShadowDepth (default 5) ///
return void

Embossed() public static method

Apply an embossed effect.
public static Embossed ( Primitive shapeName, Primitive properties ) : void
shapeName Primitive The shape to apply the effect to.
properties Primitive An array of optional ("" for none) properties, indexed by the property name: /// Amount (default 3) /// Color (default "Gray") /// Height (default 0.001) ///
return void

Magnify() public static method

Apply a magnify effect.
public static Magnify ( Primitive shapeName, Primitive properties ) : void
shapeName Primitive The shape to apply the effect to.
properties Primitive An array of optional ("" for none) properties, indexed by the property name: /// Amount (default 0.5) /// Center (default "X=0.5;Y=0.5;") /// InnerRadius (default 0.2) /// OuterRadius (default 0.4) ///
return void

Monochrome() public static method

Apply a monochrome effect.
public static Monochrome ( Primitive shapeName, Primitive properties ) : void
shapeName Primitive The shape to apply the effect to.
properties Primitive An array of optional ("" for none) properties, indexed by the property name: /// Color (default "White") ///
return void

Pixelate() public static method

Apply a pixelate effect.
public static Pixelate ( Primitive shapeName, Primitive properties ) : void
shapeName Primitive The shape to apply the effect to.
properties Primitive An array of optional ("" for none) properties, indexed by the property name: /// Pixelation (default 0.75) ///
return void

Ripple() public static method

Apply a ripple effect.
public static Ripple ( Primitive shapeName, Primitive properties ) : void
shapeName Primitive The shape to apply the effect to.
properties Primitive An array of optional ("" for none) properties, indexed by the property name: /// Center (default "X=0.5;Y=0.5;") /// Frequency (default 40) /// Magnitude (default 0.1) /// Phase (default 10) ///
return void

Sharpen() public static method

Apply a sharpen effect.
public static Sharpen ( Primitive shapeName, Primitive properties ) : void
shapeName Primitive The shape to apply the effect to.
properties Primitive An array of optional ("" for none) properties, indexed by the property name: /// Amount (default 2) /// Height (default 0.0005) ///
return void

Swirl() public static method

Apply a swirl effect.
public static Swirl ( Primitive shapeName, Primitive properties ) : void
shapeName Primitive The shape to apply the effect to.
properties Primitive An array of optional ("" for none) properties, indexed by the property name: /// AngleFrequency (default 45) /// Center (default "X=0.5;Y=0.5;") /// TwistAmount (default 10) ///
return void