Video SDK for iOS API Reference
Loading...
Searching...
No Matches
ZoomVideoSDKMaskHelper.h
Go to the documentation of this file.
1
6#import <Foundation/Foundation.h>
7#import <UIKit/UIKit.h>
8#import <ZoomVideoSDK/ZoomVideoSDKConstants.h>
9
14@interface ZoomVideoSDKMaskInfo : NSObject
15
16@property (nonatomic, assign) ZoomVideoSDKMaskShape shape;
20@property (nonatomic, assign) CGFloat left;
21
25@property (nonatomic, assign) CGFloat top;
26
30@property (nonatomic, assign) CGFloat right;
31
35@property (nonatomic, assign) CGFloat bottom;
36
40@property (nonatomic, assign) CGFloat cx;
41
45@property (nonatomic, assign) CGFloat cy;
46
50@property (nonatomic, assign) CGFloat radius;
51
52@end
53
58@interface ZoomVideoSDKMaskHelper: NSObject
59
67- (UIImage * _Nullable)generateMask:(NSArray <ZoomVideoSDKMaskInfo *> * _Nullable)maskInfos width:(NSInteger)canvasWidth height:(NSInteger)canvasHeight;
68
76- (ZoomVideoSDKError)setVideoMask:(UIImage * _Nullable)maskImage background:(UIImage * _Nullable)backgroundImage mirror:(BOOL)isMirrored;
77@end
78
79
ZoomVideoSDKError
Enumerates all errors in the VideoSDK.
ZoomVideoSDKMaskShape
Enumeration of the mask shape.
The helper to set the video mask.
The mask info to generate the mask bitmap.
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.