Show / Hide Table of Contents

Class MaskPosition

This object describes the position on faces where a mask should be placed by default.

Inheritance
System.Object
MaskPosition
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TelegramBotApi.Types
Assembly: TelegramBotApi.dll
Syntax
public class MaskPosition

Properties

| Improve this Doc View Source

Point

The part of the face relative to which the mask should be placed. One of “forehead”, “eyes”, “mouth”, or “chin”.

Declaration
public MaskPositionPointType Point { get; set; }
Property Value
Type Description
MaskPositionPointType
| Improve this Doc View Source

Scale

Mask scaling coefficient. For example, 2.0 means double size.

Declaration
[JsonProperty(PropertyName = "scale", Required = Required.Always)]
public float Scale { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

XShift

Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position.

Declaration
[JsonProperty(PropertyName = "x_shift", Required = Required.Always)]
public float XShift { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

YShift

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.

Declaration
[JsonProperty(PropertyName = "y_shift", Required = Required.Always)]
public float YShift { get; set; }
Property Value
Type Description
System.Single
  • Improve this Doc
  • View Source
Back to top Generated by DocFX