类:Image
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003e\u003ccode\u003ecast.framework.messages.Image\u003c/code\u003e is a class representing an image, such as an app icon or thumbnail, associated with a receiver application or media item.\u003c/p\u003e\n"],["\u003cp\u003eIt's constructed using a URL and includes properties for height, width, and the image URL itself.\u003c/p\u003e\n"]]],["The `cast.framework.messages.Image` class defines an image with properties for describing receiver applications or media items, such as icons or thumbnails. It's constructed using the image's URL. Key properties include: `url` (the image's location), `height` (image height), and `width` (image width). The constructor takes the image URL as the main input, allowing the creation of Image objects.\n"],null,["# Class: Image\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[messages](/cast/docs/reference/web_receiver/cast.framework.messages).Image\n==============================================================================================================================================\n\nclass static\n\nAn image that describes a receiver application or media item. This\ncould be an application icon, cover art, or a thumbnail.\n\nConstructor\n-----------\n\n### Image\n\nnew\nImage(url)\n\n| #### Parameter ||\n|-----|-----------------------|\n| url | string The image URL. |\n\nProperties\n----------\n\n### height\n\n(number or undefined)\n\nThe image height.\n\n### url\n\nstring\n\nThe image URL.\n\n### width\n\n(number or undefined)\n\nThe image width."]]