Enum ImageCropType
ImageCropType
An enum that represents the crop styles applied to image components.
If you want to apply a crop style to an IconImage
, you can only use SQUARE
or CIRCLE
.
To call an enum, you call its parent class, name, and property. For example,
CardService.ImageCropType.SQUARE
.
Properties
Property | Type | Description |
SQUARE | Enum | Square shape crop style. |
CIRCLE | Enum | Circle shape crop style. |
RECTANGLE_CUSTOM | Enum | Rectangle shape crop style with custom ratio. |
RECTANGLE_4_3 | Enum | Rectangle shape crop style with 4:3 ratio. |
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-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["`ImageCropType` is used to define how images are cropped in Google Apps Script's Card Service."],["It offers four crop styles: `SQUARE`, `CIRCLE`, `RECTANGLE_CUSTOM`, and `RECTANGLE_4_3`."],["When used with `IconImage`, only `SQUARE` and `CIRCLE` crop types are applicable."],["To use these crop types, call them using the format: `CardService.ImageCropType.SQUARE` (or your desired style)."]]],[]]