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
hashCode int
The hash code for this object. [...]
read-only, inherited
invisibleThreshold int
read / write
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
solidThreshold int
read / write

Methods

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

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited