Enum ImageStyle
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
سبک تصویر enum که سبک برش تصویر را تعریف می کند.
برای فراخوانی یک enum، کلاس والد، نام و ویژگی آن را فراخوانی می کنید. به عنوان مثال، CardService.ImageStyle.SQUARE
.
خواص
اموال | تایپ کنید | توضیحات |
---|
SQUARE | Enum | بدون کشت. پیش فرض |
CIRCLE | Enum | به شکل دایره برش دهید. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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. |"]]