Enum ImageStyle
ImageStyle
An enum that defines an image cropping style.
To call an enum, you call its parent class, name, and property. For example,
CardService.ImageStyle.SQUARE
.
Properties
Property | Type | Description |
SQUARE | Enum | No cropping. Default. |
CIRCLE | Enum | Crop to a circle shape. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.
[null,null,["Last updated 2024-12-02 UTC."],[[["`ImageStyle` is an enum used to define how an image will be cropped within a card."],["There are two cropping options: `SQUARE` (default, no cropping) and `CIRCLE` (crops the image into a circle)."],["To use an `ImageStyle`, call it using the format `CardService.ImageStyle.PROPERTY`, for example, `CardService.ImageStyle.SQUARE`."]]],[]]