Video SDK for iOS API Reference
All Classes Files Functions Enumerations Enumerator Properties
ZoomVideoSDKMaskHelper.h
Go to the documentation of this file.
1//
2// ZoomVideoSDKMaskHelper.h
3// ZoomVideoSDK
4//
5// Created by Zoom Video Communications on 4/19/23.
6// Copyright © Zoom Video Communications, Inc. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import <UIKit/UIKit.h>
11#import <ZoomVideoSDK/ZoomVideoSDKConstants.h>
12
16@interface ZoomVideoSDKMaskInfo : NSObject
17
18@property (nonatomic, assign) ZoomVideoSDKMaskShape shape;
22@property (nonatomic, assign) CGFloat left;
23
27@property (nonatomic, assign) CGFloat top;
28
32@property (nonatomic, assign) CGFloat right;
33
37@property (nonatomic, assign) CGFloat bottom;
38
42@property (nonatomic, assign) CGFloat cx;
43
47@property (nonatomic, assign) CGFloat cy;
48
52@property (nonatomic, assign) CGFloat radius;
53
54@end
55
59@interface ZoomVideoSDKMaskHelper: NSObject
60
69- (UIImage * _Nullable)generateMask:(NSArray <ZoomVideoSDKMaskInfo *> * _Nullable)maskInfos width:(NSInteger)canvasWidth height:(NSInteger)canvasHeight;
70
83- (ZoomVideoSDKError)setVideoMask:(UIImage * _Nullable)maskImage background:(UIImage * _Nullable)backgroundImage mirror:(BOOL)isMirrored;
84@end
85
86
ZoomVideoSDKError
ZoomVideoSDKError An enumeration of error.
ZoomVideoSDKMaskShape
The mask shape.
CGFloat cx
The x-coordinate of the center of the circle to be drawn.
CGFloat right
The right margin. For rectangle and oval.
CGFloat left
The left margin. For rectangle and oval.
CGFloat radius
The radius of the circle to be drawn.
CGFloat bottom
The bottom margin. For rectangle and oval.
CGFloat top
The top margin. For rectangle and oval.
ZoomVideoSDKMaskShape shape
CGFloat cy
The y-coordinate of the center of the circle to be drawn.