ইমেজ সঙ্গে কাজ
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
আপনার ঘড়ির মুখের ছবিগুলি ব্যবহার করা সত্যিই এটিকে জীবন্ত করতে সাহায্য করতে পারে, একটি পূর্ণ-স্ক্রীনের পটভূমি চিত্র থেকে আগ্রহ যোগ করার জন্য পৃথক বিশদ চিত্রগুলিতে।
res/drawable
ফোল্ডারে আপনার ইমেজ রিসোর্স রাখুন, যেমন res/drawable/face.png
, এবং তারপর নিচের মত করে ইমেজ রেফারেন্স করুন:
<PartImage x="100" y="100" width="250" height="250">
<Image resource="face"/>
</PartImage>
PartImage
উপাদান, ওয়াচ ফেস ফরম্যাটে অন্যান্য পাত্রের মতো, অনেক উপায়ে পরিবর্তন করা যেতে পারে, যার মধ্যে স্কেল করা, ঘোরানো, রূপান্তরিত করা, রঙ করা বা মাস্ক করা সহ। আরও তথ্যের জন্য PartImage
রেফারেন্স দেখুন।
পটভূমি পরিবর্তন করুন
একটি প্রভাব যা আগ্রহ প্রদান করতে পারে তা হল প্রতি ঘন্টায় পটভূমি পরিবর্তন করা। এটি Images
উপাদান ব্যবহারের মাধ্যমে অর্জন করা যেতে পারে, উদাহরণস্বরূপ:
<PartImage ...>
<Images change="ON_NEXT_HOUR">
<Image resource="background1"/>
<Image resource="background2"/>
...
</Images>
</PartImage>
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Work with images\n\nUsing images in your watch face can really help bring it to life, from a\nfull-screen background image to individual detail images to add interest.\n\nPlace your image resources in the `res/drawable` folder, for example\n`res/drawable/face.png`, and then reference the image as follows: \n\n \u003cPartImage x=\"100\" y=\"100\" width=\"250\" height=\"250\"\u003e\n \u003cImage resource=\"face\"/\u003e\n \u003c/PartImage\u003e\n\nThe `PartImage` element, as with other containers in Watch Face Format,\ncan be modified in\nmany ways, including being scaled, rotated, transformed, tinted, or masked.\nSee the [`PartImage`](/training/wearables/wff/group/part/image/part-image) reference for more information.\n\n### Vary the background\n\nOne effect that can provide interest is to change the background every hour.\nThis can be achieved through the use of the `Images` element, for example: \n\n \u003cPartImage ...\u003e\n \u003cImages change=\"ON_NEXT_HOUR\"\u003e\n \u003cImage resource=\"background1\"/\u003e\n \u003cImage resource=\"background2\"/\u003e\n ...\n \u003c/Images\u003e\n \u003c/PartImage\u003e"]]