Video SDK for Android API Reference
Loading...
Searching...
No Matches
ZoomVideoSDKMaskHelper.java
Go to the documentation of this file.
1package us.zoom.sdk;
2
3import android.graphics.Bitmap;
4
5import java.util.ArrayList;
6
10public interface ZoomVideoSDKMaskHelper {
11
15 public enum MaskShape{
18 Oval
19 }
20
24 public abstract class MaskInfo {
25 protected MaskShape shape;
26
32 return shape;
33 }
34 }
35
39 public class MaskRectangle extends MaskInfo {
40 public MaskRectangle() {
42 }
43
47 public float left;
48
52 public float top;
53
57 public float right;
58
62 public float bottom;
63 }
64
68 public class MaskCircle extends MaskInfo {
69 public MaskCircle() {
71 }
75 public float cx;
76
80 public float cy;
81
85 public float radius;
86 }
87
91 public class MaskOval extends MaskInfo {
92 public MaskOval() {
94 }
98 public float left;
99
103 public float top;
104
108 public float right;
109
113 public float bottom;
114 }
115
124 Bitmap generateMask(ArrayList<MaskInfo> maskInfos, int canvasWidth, int canvasHeight);
125
126
139 int setVideoMask(Bitmap mask, Bitmap background, boolean isMirrored);
140}
The mask info to generate the mask bitmap.
The helper to set the video mask.
Bitmap generateMask(ArrayList< MaskInfo > maskInfos, int canvasWidth, int canvasHeight)
Generate a mask based on the mask information that is located within the canvas width or the canvas h...
int setVideoMask(Bitmap mask, Bitmap background, boolean isMirrored)
Set the mask to self video.