Interface ImageCropStyleOrBuilder (2.37.1)

public interface ImageCropStyleOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAspectRatio()

public abstract double getAspectRatio()

The aspect ratio to use if the crop type is RECTANGLE_CUSTOM.

For example, here's how to apply a 16:9 aspect ratio:

<code><code> cropStyle { "type": "RECTANGLE_CUSTOM", "aspectRatio": 16/9 } </code></code>

double aspect_ratio = 2;

Returns
TypeDescription
double

The aspectRatio.

getType()

public abstract ImageCropStyle.ImageCropType getType()

The crop type.

.google.apps.card.v1.ImageCropStyle.ImageCropType type = 1;

Returns
TypeDescription
ImageCropStyle.ImageCropType

The type.

getTypeValue()

public abstract int getTypeValue()

The crop type.

.google.apps.card.v1.ImageCropStyle.ImageCropType type = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for type.