ui.Thumbnail.setParams
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह कुकी, थंबनेल जनरेट करने के लिए इस्तेमाल किए गए पैरामीटर सेट करती है.
यह थंबनेल दिखाता है.
इस्तेमाल | रिटर्न |
---|
Thumbnail.setParams(params) | ui.Thumbnail |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: ui.thumbnail | ui.Thumbnail | ui.Thumbnail इंस्टेंस. |
params | ऑब्जेक्ट | थंबनेल जनरेट करने के लिए इस्तेमाल किए गए पैरामीटर.
dimensions (WIDTHxHEIGHT फ़ॉर्मैट में कोई संख्या या संख्याओं का जोड़ा) रेंडर करने के लिए थंबनेल के ज़्यादा से ज़्यादा डाइमेंशन, पिक्सल में. अगर सिर्फ़ एक संख्या दी जाती है, तो इसका इस्तेमाल ज़्यादा से ज़्यादा डाइमेंशन के तौर पर किया जाता है. साथ ही, दूसरे डाइमेंशन का हिसाब, अनुपात के हिसाब से लगाया जाता है. |
region (E,S,W,N या GeoJSON) रेंडर करने के लिए इमेज का भौगोलिक क्षेत्र. डिफ़ॉल्ट रूप से, पूरी इमेज. |
format (string) 'png' या 'jpg' में से कोई एक. |
bands (कॉमा लगाकर अलग की गई स्ट्रिंग) आरजीबी से मैप किए जाने वाले बैंड के नामों की कॉमा लगाकर अलग की गई सूची. |
min (कॉमा लगाकर अलग की गई संख्याएं) 00 पर मैप करने के लिए वैल्यू (या हर बैंड के लिए एक वैल्यू). |
max (कॉमा लगाकर अलग की गई संख्याएं) FF पर मैप करने के लिए वैल्यू (या हर बैंड के लिए एक वैल्यू). |
gain (कॉमा लगाकर अलग किए गए नंबर) 00-FF पर मैप करने के लिए, हर बैंड के लिए एक या उससे ज़्यादा गेन. |
bias (कॉमा लगाकर अलग किए गए नंबर) 00-FF पर मैप करने के लिए ऑफ़सेट (या हर बैंड के लिए एक). |
gamma (कॉमा लगाकर अलग की गई संख्याएं) गामा करेक्शन फ़ैक्टर (या हर बैंड के लिए एक) |
palette (कॉमा लगाकर अलग की गई स्ट्रिंग) सीएसएस-स्टाइल वाली कलर स्ट्रिंग की सूची (सिर्फ़ सिंगल-बैंड प्रीव्यू). |
opacity (संख्या) ओपैसिटी के लिए 0 और 1 के बीच की कोई संख्या. |
version (number) इमेज का वर्शन नंबर (या नया वर्शन). |
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe \u003ccode\u003eThumbnail\u003c/code\u003e class allows you to set parameters for generating thumbnails of images.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esetParams\u003c/code\u003e method is used to configure the thumbnail generation process with options like dimensions, region, format, and color adjustments, and returns the \u003ccode\u003eui.Thumbnail\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eYou can control the size, area, and visual appearance of the thumbnail using parameters like \u003ccode\u003edimensions\u003c/code\u003e, \u003ccode\u003eregion\u003c/code\u003e, \u003ccode\u003ebands\u003c/code\u003e, \u003ccode\u003emin\u003c/code\u003e, \u003ccode\u003emax\u003c/code\u003e, \u003ccode\u003egain\u003c/code\u003e, \u003ccode\u003ebias\u003c/code\u003e, \u003ccode\u003egamma\u003c/code\u003e, \u003ccode\u003epalette\u003c/code\u003e, and \u003ccode\u003eopacity\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt's possible to specify the image format (PNG or JPG) and opacity for the thumbnail.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eversion\u003c/code\u003e parameter lets you request a specific version of the image or the latest one.\u003c/p\u003e\n"]]],["The `Thumbnail.setParams(params)` method configures thumbnail generation parameters and returns the `ui.Thumbnail`. Parameters include `dimensions` for pixel size, `region` for the geospatial area, `format` ('png' or 'jpg'), and `bands` for RGB mapping. It accepts numerical adjustments like `min`, `max`, `gain`, `bias`, `gamma`, color settings through a `palette`, `opacity`, and `version` controls. The given `ui.thumbnail` instance is modified with these settings.\n"],null,[]]