Enum ImageStyle
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
ImageStyle
Es una enumeración que define un estilo de recorte de imagen.
Para llamar a una enumeración, debes llamar a su clase superior, nombre y propiedad. Por ejemplo,
CardService.ImageStyle.SQUARE
.
Propiedades
Propiedad | Tipo | Descripción |
SQUARE | Enum | Sin recortes. Predeterminado. |
CIRCLE | Enum | Recorta la imagen en forma de círculo. |
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-26 (UTC)
[null,null,["Última actualización: 2025-07-26 (UTC)"],[[["\u003cp\u003e\u003ccode\u003eImageStyle\u003c/code\u003e is an enum used to define how an image will be cropped within a card.\u003c/p\u003e\n"],["\u003cp\u003eThere are two cropping options: \u003ccode\u003eSQUARE\u003c/code\u003e (default, no cropping) and \u003ccode\u003eCIRCLE\u003c/code\u003e (crops the image into a circle).\u003c/p\u003e\n"],["\u003cp\u003eTo use an \u003ccode\u003eImageStyle\u003c/code\u003e, call it using the format \u003ccode\u003eCardService.ImageStyle.PROPERTY\u003c/code\u003e, for example, \u003ccode\u003eCardService.ImageStyle.SQUARE\u003c/code\u003e.\u003c/p\u003e\n"]]],["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"],null,["# Enum ImageStyle\n\nImageStyle\n\nAn enum that defines an image cropping style.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.ImageStyle.SQUARE`. \n\n### Properties\n\n| Property | Type | Description |\n|----------|--------|-------------------------|\n| `SQUARE` | `Enum` | No cropping. Default. |\n| `CIRCLE` | `Enum` | Crop to a circle shape. |"]]