setPortraitSegmentationBackgroundPath method

Future<void> setPortraitSegmentationBackgroundPath(
  1. String imgPath,
  2. ZegoEffectsScaleMode mode
)

设置人像分割的自定义背景图片路径。

@param {string} imgPath - 本地图片资源路径。 @param {ZegoEffectsScaleMode} mode - 图片缩放模式。

Implementation

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