Class: TD::Types::MaskPosition

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/mask_position.rb

Overview

Position on a photo where a mask should be placed.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#pointTD::Types::MaskPoint

Part of the face, relative to which the mask should be placed.

Returns:



11
12
13
# File 'lib/tdlib/types/mask_position.rb', line 11

def point
  @point
end

#scaleFloat

Mask scaling coefficient. (For example, 2.0 means a doubled size).

Returns:

  • (Float)

    the current value of scale



11
12
13
# File 'lib/tdlib/types/mask_position.rb', line 11

def scale
  @scale
end

#x_shiftFloat

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).

Returns:

  • (Float)

    the current value of x_shift



11
12
13
# File 'lib/tdlib/types/mask_position.rb', line 11

def x_shift
  @x_shift
end

#y_shiftFloat

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).

Returns:

  • (Float)

    the current value of y_shift



11
12
13
# File 'lib/tdlib/types/mask_position.rb', line 11

def y_shift
  @y_shift
end