Sha256: 7f64a83a3bb83ae1a12e609b4139214fc48698594b2be1151b69266a26a63f4d

Contents?: true

Size: 890 Bytes

Versions: 4

Compression:

Stored size: 890 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::Float
    attribute :y_shift, TD::Types::Float
    attribute :scale, TD::Types::Float
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
tdlib-schema-1.7.0.1 lib/tdlib/types/mask_position.rb
tdlib-ruby-2.2.0 lib/tdlib/types/mask_position.rb
tdlib-ruby-2.1.0 lib/tdlib/types/mask_position.rb
tdlib-ruby-2.0.0 lib/tdlib/types/mask_position.rb