Sha256: f7ef67121f4cc9ed506ef2025b816b7d7976afaafc9814eb0b9cf20f67db8615

Contents?: true

Size: 923 Bytes

Versions: 2

Compression:

Stored size: 923 Bytes

Contents

module TD::Types
  # Position on a photo where a mask should be placed.
  #
  # @attr point [TD::Types::MaskPoint] Part of the face, relative to which the mask should be placed.
  # @attr 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).
  # @attr 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).
  # @attr scale [Float] Mask scaling coefficient.
  #   (For example, 2.0 means a doubled size).
  class MaskPosition < Base
    attribute :point, TD::Types::MaskPoint
    attribute :x_shift, TD::Types::Coercible::Float
    attribute :y_shift, TD::Types::Coercible::Float
    attribute :scale, TD::Types::Coercible::Float
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tdlib-schema-1.7.0.3 lib/tdlib/types/mask_position.rb
tdlib-schema-1.7.0.2 lib/tdlib/types/mask_position.rb