setChromaKeyParam method Null safety
Set the parameters for chroma key.
ZegoEffectsChromaKeyParam param - The parameter configuration for chroma key, including similarity, border size, chroma key color, opacity, and smoothness information. For specific parameter definitions, refer to the ZegoEffectsChromaKeyParam
class.
Precautions: Use after initializing ZegoEffects.
Applicable version: >= 2.1.0
Implementation
Future<void> setChromaKeyParam(ZegoEffectsChromaKeyParam param) async {
return await _channel.invokeMethod('setChromaKeyParam', {
'similarity': param.similarity,
'borderSize': param.borderSize,
'keyColor': param.keyColor,
'opacity': param.opacity,
'smoothness': param.smoothness
});
}