BitmovinApiSdk\Models\ThumbnailAspectMode

Synopsis

class ThumbnailAspectMode extends Enum {
  • // methods
  • public static ThumbnailAspectMode create()
  • public static ThumbnailAspectMode PAD()
  • public static ThumbnailAspectMode CROP()
  • public static ThumbnailAspectMode STRETCH()
}

Hierarchy

Methods

public

  • CROP() — Specifies that the Cropping aspect mode is used when adapting to configured the width and height. Cropping means that parts of the image are removed so that the thumbnail fits the aspect ratio.
  • PAD() — Specifies that the Padding aspect mode is used when adapting to configured the width and height. Padding means that either horiziontally or vertically black boxes are added to make sure that the thumbnail image fits the aspect ratio.
  • STRETCH() — Specifies that the Stretching aspect mode is used when adapting to configured the width and height. Stretching means that the image is stretched either vertically or horizontally until it fits the aspect ratio.
  • create()

Inherited from BitmovinApiSdk\Common\Enum

public

  • __callStatic() — Returns a value when called statically like so: MyEnum::SOME_VALUE() given SOME_VALUE is a class constant
  • __toString()
  • equals() — Determines if Enum should be considered equal with the variable passed as a parameter.
  • getKey() — Returns the enum key (i.e. the constant name).
  • getValue()
  • isValidKey() — Check if is valid enum key
  • jsonSerialize() — Specify data which should be serialized to JSON. This method returns data that can be serialized by json_encode() natively.
  • keys() — Returns the names (keys) of all constants in the Enum class
  • toArray() — Returns all possible values as an array
  • values() — Returns instances of the Enum class of all Enum constants