1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 04:16:54 +01:00
MadelineProto/docs/TD_docs/constructors/maskPosition.md
2017-07-23 16:11:02 +02:00

48 lines
1.2 KiB
Markdown

---
title: maskPosition
description: Position on a photo where a mask should be placed
---
## Constructor: maskPosition
[Back to constructors index](index.md)
Position on a photo where a mask should be placed
### Attributes:
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
|point|[int](../types/int.md) | Yes|Part of a photo relative to which the mask should be placed. 0 - forehead, 1 - eyes, 2 - mouth, 3 - chin|
|x\_shift|[double](../types/double.md) | Yes|Shift by X-axis in pixels, from left to right|
|y\_shift|[double](../types/double.md) | Yes|Shift by Y-axis in pixels, from top to bottom|
|zoom|[double](../types/double.md) | Yes|Mask zoom coefficient|
### Type: [MaskPosition](../types/MaskPosition.md)
### Example:
```
$maskPosition = ['_' => 'maskPosition', 'point' => int, 'x_shift' => double, 'y_shift' => double, 'zoom' => double, ];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_":"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, }
```