Class: TD::Types::MaskPosition
- Defined in:
- lib/tdlib/types/mask_position.rb
Overview
Position on a photo where a mask should be placed.
Instance Attribute Summary collapse
-
#point ⇒ TD::Types::MaskPoint
Part of the face, relative to which the mask should be placed.
-
#scale ⇒ Float
Mask scaling coefficient.
-
#x_shift ⇒ Float
Shift by X-axis measured in widths of the mask scaled to the face size, from left to right.
-
#y_shift ⇒ Float
Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom.
Method Summary
Methods inherited from Base
Instance Attribute Details
#point ⇒ TD::Types::MaskPoint
Part of the face, relative to which the mask should be placed.
11 12 13 |
# File 'lib/tdlib/types/mask_position.rb', line 11 def point @point end |
#scale ⇒ Float
Mask scaling coefficient. (For example, 2.0 means a doubled size).
11 12 13 |
# File 'lib/tdlib/types/mask_position.rb', line 11 def scale @scale end |
#x_shift ⇒ Float
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).
11 12 13 |
# File 'lib/tdlib/types/mask_position.rb', line 11 def x_shift @x_shift end |
#y_shift ⇒ Float
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).
11 12 13 |
# File 'lib/tdlib/types/mask_position.rb', line 11 def y_shift @y_shift end |