Lesson Plan: Unit - 04
Subject: P15A2AAD - Android Application Development
Topic of Study: Creating User Interfaces in Android
Grade/Level: Master of Computer Applications
Objective: To demonstrate bitmap operations using code.
Time Allotment: 55 Minutes
- Working with Bitmap
- Working with graphics such as bitmaps in the android.graphics package.
- The core class for bitmaps is android.graphics.Bitmap.
- Operations on Bitmaps…
- Drawing Bitmap Graphics on a Canvas
- Scaling Bitmap Graphics
- Transforming Bitmaps
- Drawing Bitmap Graphics on a Canvas:
- You can draw bitmaps onto a valid Canvas, such as within the onDraw() method of a View, using one of the drawBitmap() methods.
- Exa. of Output
- Exa. of Code
- Scaling Bitmap Graphics:
- To scale your graphic to a smaller/larger size.
- Exa. of Output
- Exa. of Code.
- Transforming Bitmaps:
- Matrix class to perform transformations on a Bitmap graphic.
- Use the Matrix class to perform tasks such as mirroring and rotating graphic.
- For mirroring… Method: Prescale()
- For Rotating… Method: Prerotate()
- Exa.