google_api_docs v0.3.0 GoogleApi.Docs.V1.Model.CropProperties View Source

The crop properties of an image.

The crop rectangle is represented using fractional offsets from the original content's four edges.

  • If the offset is in the interval (0, 1), the corresponding edge of crop rectangle is positioned inside of the image's original bounding rectangle.
  • If the offset is negative or greater than 1, the corresponding edge of crop rectangle is positioned outside of the image's original bounding rectangle.
  • If all offsets and rotation angle are 0, the image is not cropped.

Attributes

  • angle (type: number(), default: nil) - The clockwise rotation angle of the crop rectangle around its center, in radians. Rotation is applied after the offsets.
  • offsetBottom (type: number(), default: nil) - The offset specifies how far inwards the bottom edge of the crop rectangle is from the bottom edge of the original content as a fraction of the original content's height.
  • offsetLeft (type: number(), default: nil) - The offset specifies how far inwards the left edge of the crop rectangle is from the left edge of the original content as a fraction of the original content's width.
  • offsetRight (type: number(), default: nil) - The offset specifies how far inwards the right edge of the crop rectangle is from the right edge of the original content as a fraction of the original content's width.
  • offsetTop (type: number(), default: nil) - The offset specifies how far inwards the top edge of the crop rectangle is from the top edge of the original content as a fraction of the original content's height.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t()

View Source
t() :: %GoogleApi.Docs.V1.Model.CropProperties{
  angle: number(),
  offsetBottom: number(),
  offsetLeft: number(),
  offsetRight: number(),
  offsetTop: number()
}

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.