java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.MaskPosition
- Enclosing class:
- TdApi
Position on a photo where a mask is placed.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.Part of the face, relative to which the mask is placed.double
Mask scaling coefficient.double
Shift by X-axis measured in widths of the mask scaled to the face size, from left to right.double
Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. -
Constructor Summary
ConstructorDescriptionPosition 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.MaskPosition
(DataInput input) Position on a photo where a mask is placed. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
point
Part of the face, relative to which the mask is placed. -
xShift
public double xShiftShift 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
public double yShiftShift 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
public double scaleMask scaling coefficient. (For example, 2.0 means a doubled size.) -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
MaskPosition
public MaskPosition()Position on a photo where a mask is placed. -
MaskPosition
Position on a photo where a mask is placed.- Parameters:
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.)
-
MaskPosition
Position on a photo where a mask is placed.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-