2017-03-11 19:54:51 +01:00
|
|
|
---
|
|
|
|
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:
|
|
|
|
|
|
|
|
```
|
2017-07-23 16:33:46 +02:00
|
|
|
$maskPosition = ['_' => 'maskPosition', 'point' => int, 'x_shift' => double, 'y_shift' => double, 'zoom' => double];
|
2017-03-11 19:54:51 +01:00
|
|
|
```
|
|
|
|
|
2017-07-23 16:11:02 +02:00
|
|
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
|
|
|
|
|
|
|
```
|
2017-07-23 16:33:46 +02:00
|
|
|
{"_": "maskPosition", "point": int, "x_shift": double, "y_shift": double, "zoom": double}
|
2017-07-23 16:11:02 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
|
2017-03-11 19:54:51 +01:00
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
2017-07-23 16:33:46 +02:00
|
|
|
maskPosition={_='maskPosition', point=int, x_shift=double, y_shift=double, zoom=double}
|
2017-03-11 19:54:51 +01:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|