setChromaKeyBackgroundPath method

Future<void> setChromaKeyBackgroundPath(
  1. String imagePath,
  2. ZegoEffectsScaleMode mode
)

设置抠像自定义背景的路径。

@param {string} imagePath - 自定义背景图片的路径。 @param {ZegoEffectsScaleMode} mode - 图片的缩放模式。

Implementation

Future<void> setChromaKeyBackgroundPath(
    String imagePath, ZegoEffectsScaleMode mode) async {
  return await _channel.invokeMethod(
      'setChromaKeyBackgroundPath', {'imagePath': imagePath, 'mode': mode.index});
}