Class MaskPosition
java.lang.Object
io.micronaut.chatbots.telegram.api.MaskPosition
This object describes the position on faces where a mask should be placed by default.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull MaskPositionPoint
getPoint()
@NonNull Float
getScale()
@NonNull Float
@NonNull Float
void
setPoint
(@NonNull MaskPositionPoint point) void
void
void
toString()
-
Constructor Details
-
MaskPosition
public MaskPosition()
-
-
Method Details
-
getPoint
- Returns:
- The part of the face relative to which the mask should be placed.
-
setPoint
- Parameters:
point
- The part of the face relative to which the mask should be placed.
-
getXshift
- Returns:
- Shift by X-axis measured in widths of the mask scaled to the face size, from left to right.
-
setXshift
- Parameters:
xshift
- Shift by X-axis measured in widths of the mask scaled to the face size, from left to right.
-
getYshift
- Returns:
- Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom.
-
setYshift
- Parameters:
yshift
- Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom.
-
getScale
- Returns:
- Mask scaling coefficient. For example, 2.0 means double size.
-
setScale
- Parameters:
scale
- Mask scaling coefficient. For example, 2.0 means double size.
-
toString
-