MadelineProto/docs/TD_docs/constructors/maskPosition.md

1.0 KiB

title description
maskPosition Position on a photo where a mask should be placed

Constructor: maskPosition

Back to constructors index

Position on a photo where a mask should be placed

Attributes:

Name Type Required Description
point int Yes Part of a photo relative to which the mask should be placed. 0 - forehead, 1 - eyes, 2 - mouth, 3 - chin
x_shift double Yes Shift by X-axis in pixels, from left to right
y_shift double Yes Shift by Y-axis in pixels, from top to bottom
zoom double Yes Mask zoom coefficient

Type: MaskPosition

Example:

$maskPosition = ['_' => 'maskPosition', 'point' => int, 'x_shift' => double, 'y_shift' => double, 'zoom' => double, ];

Or, if you're into Lua:

maskPosition={_='maskPosition', point=int, x_shift=double, y_shift=double, zoom=double, }