Enum ImageCropType
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
이미지자르기유형
이미지 구성요소에 적용된 자르기 스타일을 나타내는 enum입니다.
IconImage
에 자르기 스타일을 적용하려면 SQUARE
또는 CIRCLE
만 사용할 수 있습니다.
enum을 호출하려면 상위 클래스, 이름, 속성을 호출합니다. 예를 들면
CardService.ImageCropType.SQUARE
입니다.
속성
속성 | 유형 | 설명 |
SQUARE | Enum | 정사각형 모양 자르기 스타일 |
CIRCLE | Enum | 원형 자르기 스타일 |
RECTANGLE_CUSTOM | Enum | 맞춤 비율의 직사각형 모양 자르기 스타일 |
RECTANGLE_4_3 | Enum | 4:3 비율의 직사각형 모양 자르기 스타일 |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 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\u003eImageCropType\u003c/code\u003e is used to define how images are cropped in Google Apps Script's Card Service.\u003c/p\u003e\n"],["\u003cp\u003eIt offers four crop styles: \u003ccode\u003eSQUARE\u003c/code\u003e, \u003ccode\u003eCIRCLE\u003c/code\u003e, \u003ccode\u003eRECTANGLE_CUSTOM\u003c/code\u003e, and \u003ccode\u003eRECTANGLE_4_3\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eWhen used with \u003ccode\u003eIconImage\u003c/code\u003e, only \u003ccode\u003eSQUARE\u003c/code\u003e and \u003ccode\u003eCIRCLE\u003c/code\u003e crop types are applicable.\u003c/p\u003e\n"],["\u003cp\u003eTo use these crop types, call them using the format: \u003ccode\u003eCardService.ImageCropType.SQUARE\u003c/code\u003e (or your desired style).\u003c/p\u003e\n"]]],["`ImageCropType` is an enum defining image crop styles. Available options include `SQUARE`, `CIRCLE`, `RECTANGLE_CUSTOM` (custom ratio), and `RECTANGLE_4_3` (4:3 ratio). When applying crop styles to `IconImage`, only `SQUARE` or `CIRCLE` can be used. To utilize a specific crop type call its parent class `CardService` along with its name and property. e.g: `CardService.ImageCropType.SQUARE`.\n"],null,["# Enum ImageCropType\n\nImageCropType\n\nAn enum that represents the crop styles applied to image components.\n\nIf you want to apply a crop style to an [IconImage](/apps-script/reference/card-service/icon-image), you can only use `SQUARE\n` or `CIRCLE`.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.ImageCropType.SQUARE`. \n\n### Properties\n\n| Property | Type | Description |\n|--------------------|--------|-----------------------------------------------|\n| `SQUARE` | `Enum` | Square shape crop style. |\n| `CIRCLE` | `Enum` | Circle shape crop style. |\n| `RECTANGLE_CUSTOM` | `Enum` | Rectangle shape crop style with custom ratio. |\n| `RECTANGLE_4_3` | `Enum` | Rectangle shape crop style with 4:3 ratio. |"]]