ui.Thumbnail.setImage
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Đặt ee.Image dùng để tạo hình thu nhỏ.
Trả về hình thu nhỏ này.
Cách sử dụng | Giá trị trả về |
---|
Thumbnail.setImage(image) | ui.Thumbnail |
Đối số | Loại | Thông tin chi tiết |
---|
this: ui.thumbnail | ui.Thumbnail | Đối tượng ui.Thumbnail. |
image | Hình ảnh | Hình ảnh dùng để tạo hình thu nhỏ. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eThumbnail.setImage()\u003c/code\u003e configures a \u003ccode\u003eui.Thumbnail\u003c/code\u003e instance to display a preview of a specified \u003ccode\u003eee.Image\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe method takes an \u003ccode\u003eee.Image\u003c/code\u003e as input and applies it to the thumbnail for visualization.\u003c/p\u003e\n"],["\u003cp\u003eIt returns the modified \u003ccode\u003eui.Thumbnail\u003c/code\u003e instance, allowing for method chaining or further customization.\u003c/p\u003e\n"]]],["The core function of `Thumbnail.setImage(image)` is to define the source image for a thumbnail. This method takes an `Image` object as input and sets it as the basis for generating the thumbnail. The function then returns the `ui.Thumbnail` instance itself, allowing for method chaining. The `ui.Thumbnail` object represents a visual preview, and this method specifies what the preview is of.\n"],null,["# ui.Thumbnail.setImage\n\n\u003cbr /\u003e\n\nSets the ee.Image used to generate the thumbnail.\n\n\u003cbr /\u003e\n\nReturns this thumbnail.\n\n| Usage | Returns |\n|-----------------------------|--------------|\n| Thumbnail.setImage`(image)` | ui.Thumbnail |\n\n| Argument | Type | Details |\n|----------------------|--------------|-------------------------------------------------|\n| this: `ui.thumbnail` | ui.Thumbnail | The ui.Thumbnail instance. |\n| `image` | Image | The image from which to generate the thumbnail. |"]]