ChromaKeyFilter class

This filter provide a simple ChromaKey solution that can be applied on bitmap or video

backgroundColor @represent : the color you want to make transparent @default : 0xFF00FF00 > pure green

solidThreshold @represent : this minimal difference for a color to be consider solid @default : 140 @range : 0 <> 255

invisibleThreshold @represent : this minimal similarity for a color to be consider completely invisible @default : 15 @range : 0 <> 255

play with the solidThreshold and invisibleThreshold to have the best possible result for you image

Inheritance

Constructors

ChromaKeyFilter({int backgroundColor: 0xFF00FF00 int solidThreshold: 140 int invisibleThreshold: 20 })

Properties

backgroundColor ↔ int
read / write
invisibleThreshold ↔ int
read / write
solidThreshold ↔ int
read / write
hashCode → int
The hash code for this object.
read-only, inherited
isSimple → bool
read-only, inherited
overlap Rectangle<int>
read-only, inherited
renderPassSources → List<int>
read-only, inherited
renderPassTargets → List<int>
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

apply(BitmapData bitmapData, [ Rectangle<num> rectangle ]) → void
override
clone() BitmapFilter
override
renderFilter(RenderState renderState, RenderTextureQuad renderTextureQuad, int pass) → void
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited