ImageFill
इमेज के प्रज़ेंटेशन को प्रभावित करने से जुड़ी इमेज दिखाने के लिए उपलब्ध विकल्प. इसका इस्तेमाल तब किया जाना चाहिए, जब इमेज का आसपेक्ट रेशियो (लंबाई-चौड़ाई का अनुपात), इमेज कंटेनर के आसपेक्ट रेशियो (लंबाई-चौड़ाई का अनुपात) से मेल नहीं खाता.
Enums |
UNSPECIFIED |
ImageFill के बारे में जानकारी नहीं दी गई है. |
GRAY |
इमेज कंटेनर और इमेज कंटेनर के बीच के अंतराल को स्लेटी बार से भरें. |
WHITE |
इमेज और इमेज कंटेनर के बीच के अंतर को सफ़ेद बार से भरें. |
CROPPED |
इमेज का स्केल किया गया है, क्योंकि इमेज की चौड़ाई और ऊंचाई, कंटेनर के डाइमेंशन से मेल खाती है या उससे ज़्यादा है. अगर इमेज की ऊंचाई, कंटेनर की ऊंचाई से ज़्यादा है, तो यह इमेज के ऊपरी और निचले हिस्से को काट सकता है. साथ ही, अगर इमेज की लंबाई बढ़ाई गई है, तो वह कंटेनर की चौड़ाई से ज़्यादा है. इसलिए, इमेज को बाएं और दाएं काट सकते हैं. यह 4:3 वीडियो चलाते समय, वाइडस्क्रीन टीवी पर "ज़ूम मोड" की तरह होता है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2023-05-16 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2023-05-16 (UTC) को अपडेट किया गया."],[[["Image display options control how an image is presented within its container, especially when aspect ratios differ."],["Options include filling the surrounding space with gray or white bars or cropping the image to fit."],["`CROPPED` scales the image to fill the container, potentially cropping parts that extend beyond its boundaries, similar to \"Zoom Mode\" on a widescreen TV."],["Developers can choose an option to optimize image presentation based on the specific needs of their website or application."]]],["The provided information outlines image display options when an image's aspect ratio differs from its container. `GRAY` and `WHITE` options fill the resulting gaps with gray or white bars, respectively. `CROPPED` scales the image to match or exceed container dimensions, potentially cropping the top/bottom or left/right edges. An `UNSPECIFIED` option exists, but its behavior is undefined. These settings control how the image is presented within its designated container.\n"]]