setPortraitSegmentationForegroundPosition method
设置人像分割前景的位置和大小。
@param {Point} position - 前景的位置坐标,包含 x 和 y 坐标值。 @param {Size} size - 前景的大小,包含宽度和高度值。
Implementation
Future<void> setPortraitSegmentationForegroundPosition(
Point position, Size size) async {
return await _channel.invokeMethod(
'setPortraitSegmentationForegroundPosition', {
'x': position.x,
'y': position.y,
'width': size.width,
'height': size.height
});
}