Enum ImageStyle
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
이미지스타일
이미지 자르기 스타일을 정의하는 enum입니다.
enum을 호출하려면 상위 클래스, 이름, 속성을 호출합니다. 예를 들면
CardService.ImageStyle.SQUARE
입니다.
속성
속성 | 유형 | 설명 |
SQUARE | Enum | 자르지 않습니다. 기본값입니다. |
CIRCLE | Enum | 원형으로 자릅니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 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. |"]]