الصور والرسومات في Compose
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يمكن أن يساعد استخدام صور جذابة وواضحة في تطبيقات Android على تحسين مظهر تطبيقك. في نظام التشغيل Android، هناك عدة طرق مختلفة لعرض العناصر بصريًا على الشاشة، سواء باستخدام رسومات متجهة أو نقطية أو الرسم مباشرةً باستخدام لوحة الرسم على الشاشة. في هذا القسم، ستتعرّف على كيفية التعامل مع هذه الأنواع المختلفة من الرسومات.
تعرَّف على كيفية استخدام الصور من خلال التفاصيل التالية:
- تحميل الصور: تعرَّف على كيفية تحميل صورة من القرص أو الإنترنت
- ImageBitmap مقابل ImageVector: تعرَّف على كيفية استخدام تنسيقَي الصور الأكثر شيوعًا، وهما النقطي والمتجه.
- رموز Material: تعرَّف على طريقة
سهلة لرسم رمز بلون واحد على الشاشة، باتّباع إرشادات
Material Design 3.
- تخصيص صورة: تعرَّف على كيفية تخصيص صورة باستخدام خصائص عنصر Image القابل للإنشاء.
- Custom painter: تعرَّف على عناصر Custom painter لتخصيص صورتك بشكل إضافي.
- تحسين الأداء: تعرَّف على أفضل طريقة للتعامل مع الصور لتجنُّب مشاكل الأداء.
يمكنك أيضًا الاطّلاع على مزيد من المعلومات حول استخدام "الرسومات" هنا.
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-08-21 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-08-21 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# Images and graphics in Compose\n\nUsing bright, engaging visuals in your Android apps can help improve the look\nand feel of your application. In Android, there are a few different ways in\nwhich you can render something visually on screen- using either a vector,\nbitmap, or directly drawing with a canvas on screen. In this section, learn\nhow to work these different kinds of graphics.\n\nLearn how to work with images using these details:\n\n- [Loading images](/develop/ui/compose/graphics/images/loading): Learn how to load an image from disk or the internet\n- [ImageBitmap versus ImageVector](/develop/ui/compose/graphics/images/compare): Learn how to work with the two most common image formats, raster and vector.\n- [Material icons](/develop/ui/compose/graphics/images/material): Learn about a convenient way to draw a single color icon on the screen, following Material Design 3 guidelines.\n- [Customize an image](/develop/ui/compose/graphics/images/customize): Learn how to customize an image using properties of an Image composable.\n- [Custom painter](/develop/ui/compose/graphics/images/custompainter): Learn about custom painter objects to additionally customize your image.\n- [Optimizing performance](/develop/ui/compose/graphics/images/optimization): Learn about how to best work with images to avoid performance issues.\n\nYou can also learn more about working with Graphics [here](/develop/ui/compose/graphics/graphics-sub)."]]