Video SDK for iOS API Reference
Loading...
Searching...
No Matches
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
17@interface ZoomVideoSDKMaskInfo : NSObject
18
19@property (nonatomic, assign) ZoomVideoSDKMaskShape shape;
23@property (nonatomic, assign) CGFloat left;
24
28@property (nonatomic, assign) CGFloat top;
29
33@property (nonatomic, assign) CGFloat right;
34
38@property (nonatomic, assign) CGFloat bottom;
39
43@property (nonatomic, assign) CGFloat cx;
44
48@property (nonatomic, assign) CGFloat cy;
49
53@property (nonatomic, assign) CGFloat radius;
54
55@end
56
61@interface ZoomVideoSDKMaskHelper: NSObject
62
70- (UIImage * _Nullable)generateMask:(NSArray <ZoomVideoSDKMaskInfo *> * _Nullable)maskInfos width:(NSInteger)canvasWidth height:(NSInteger)canvasHeight;
71
79- (ZoomVideoSDKError)setVideoMask:(UIImage * _Nullable)maskImage background:(UIImage * _Nullable)backgroundImage mirror:(BOOL)isMirrored;
80@end
81
82
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.