setPortraitSegmentationBackgroundPath method Null safety
- String imgPath,
- ZegoEffectsScaleMode mode
Set the custom background image path for portrait segmentation.
String imgPath - The local image resource path. ZegoEffectsScaleMode mode - The image scaling mode.
Precautions: Use after initializing ZegoEffects.
Applicable version: >= 2.1.0
Implementation
Future<void> setPortraitSegmentationBackgroundPath(String imgPath, ZegoEffectsScaleMode mode) async {
return await _channel.invokeMethod('setPortraitSegmentationBackgroundPath', {'path': imgPath, 'mode': mode.index});
}