Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Enum ImageStyle
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
ImageStyle
用于定义图片剪裁样式的枚举。
若要调用枚举,您可以调用其父类、名称和属性。例如
CardService.ImageStyle.SQUARE。
属性
| 媒体资源 | 类型 | 说明 |
SQUARE | Enum | 不剪裁。默认此值。 |
CIRCLE | Enum | 剪裁成圆形。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-04-13。
[null,null,["最后更新时间 (UTC):2026-04-13。"],[],["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"]]