public static class TdApi.MaskPosition extends TdApi.Object
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.MaskPoint |
point
Part of the face, relative to which the mask is placed.
|
double |
scale
Mask scaling coefficient.
|
double |
xShift
Shift by X-axis measured in widths of the mask scaled to the face size, from left to right.
|
double |
yShift
Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom.
|
Constructor and Description |
---|
MaskPosition()
Position on a photo where a mask is placed.
|
MaskPosition(TdApi.MaskPoint point,
double xShift,
double yShift,
double scale)
Position on a photo where a mask is placed.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public TdApi.MaskPoint point
public double xShift
public double yShift
public double scale
public static final int CONSTRUCTOR
public MaskPosition()
public MaskPosition(TdApi.MaskPoint point, double xShift, double yShift, double scale)
point
- Part of the face, relative to which the mask is placed.xShift
- Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just to the left of the default mask position.)yShift
- Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. (For example, 1.0 will place the mask just below the default mask position.)scale
- Mask scaling coefficient. (For example, 2.0 means a doubled size.)public int getConstructor()
getConstructor
in class TdApi.Object