ChromaKeyFilter class

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

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
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
invisibleThreshold int
getter/setter pair
isSimple bool
no setterinherited
overlap Rectangle<int>
no setterinherited
renderPassSources List<int>
no setterinherited
renderPassTargets List<int>
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
solidThreshold int
getter/setter pair

Methods

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

Operators

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