Enum ImageStyle
Bildstil
Ein Enum, das einen Bildausschnittstil definiert.
Wenn Sie ein Enum aufrufen möchten, rufen Sie die übergeordnete Klasse, den Namen und die Eigenschaft auf. Beispiel:
CardService.ImageStyle.SQUARE
.
Attribute
Attribut | Typ | Beschreibung |
SQUARE | Enum | Ohne Zuschneiden. Standard. |
CIRCLE | Enum | Zuschneiden auf eine kreisförmige Form |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-12-02 (UTC).
[null,null,["Zuletzt aktualisiert: 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`."]]],["The `ImageStyle` enum defines image cropping options. It's accessed via `CardService.ImageStyle.PROPERTY`. The available properties are `SQUARE`, which is the default and applies no cropping, and `CIRCLE`, which crops the image into a circular shape. These properties allow control over how images are displayed within a given card service. The type of each property is `Enum`.\n"]]