Interface ImageCropStyleOrBuilder (2.44.0)

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
Type Description
double

The aspectRatio.

getType()

public abstract ImageCropStyle.ImageCropType getType()

The crop type.

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

Returns
Type Description
ImageCropStyle.ImageCropType

The type.

getTypeValue()

public abstract int getTypeValue()

The crop type.

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

Returns
Type Description
int

The enum numeric value on the wire for type.