Show / Hide Table of Contents

Class CropProperties

The crop properties of an image. The crop rectangle is represented using fractional offsets from the original content's 4 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 angles are 0, the image is not cropped.

Inheritance
object
CropProperties
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Docs.v1.Data
Assembly: Google.Apis.Docs.v1.dll
Syntax
public class CropProperties : IDirectResponseSchema

Properties

Angle

The clockwise rotation angle of the crop rectangle around its center, in radians. Rotation is applied after the offsets.

Declaration
[JsonProperty("angle")]
public virtual float? Angle { get; set; }
Property Value
Type Description
float?

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

OffsetBottom

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.

Declaration
[JsonProperty("offsetBottom")]
public virtual float? OffsetBottom { get; set; }
Property Value
Type Description
float?

OffsetLeft

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.

Declaration
[JsonProperty("offsetLeft")]
public virtual float? OffsetLeft { get; set; }
Property Value
Type Description
float?

OffsetRight

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.

Declaration
[JsonProperty("offsetRight")]
public virtual float? OffsetRight { get; set; }
Property Value
Type Description
float?

OffsetTop

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.

Declaration
[JsonProperty("offsetTop")]
public virtual float? OffsetTop { get; set; }
Property Value
Type Description
float?

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX