Android: Canvas      The Basics<br />CodeAndroid.org<br />
Why Canvas?<br />For Multimedia Applications<br /><ul><li>Games, full visual applications
Control over the Visual Effects
Allows animation to be done freely
Unique Response according to author’s design</li></li></ul><li>No longer Needed<br />
Fundamentals<br />
Drawing an image(basic)<br />Specify the coordinate and paint<br />Coordinate X and Y and paint<br />Paint functions<br />...
Drawing shape and text<br />
Adding Bitmap<br />
Text Size and alpha<br />
Response <br />onKeyDown(int, KeyEvent)<br />onKeyUp(int, KeyEvent)<br />onTrackballEvent(int, KeyEvent)<br />onTouchEvent...
Prochain SlideShare
Chargement dans…5
×

Introduction to Canvas

8 213 vues

Publié le

by Tan Teck Loon

Publié dans : Technologie
0 commentaire
0 j’aime
Statistiques
Remarques
  • Soyez le premier à commenter

  • Soyez le premier à aimer ceci

Aucun téléchargement
Vues
Nombre de vues
8 213
Sur SlideShare
0
Issues des intégrations
0
Intégrations
4 356
Actions
Partages
0
Téléchargements
60
Commentaires
0
J’aime
0
Intégrations 0
Aucune incorporation

Aucune remarque pour cette diapositive

Introduction to Canvas

  1. 1. Android: Canvas The Basics<br />CodeAndroid.org<br />
  2. 2. Why Canvas?<br />For Multimedia Applications<br /><ul><li>Games, full visual applications
  3. 3. Control over the Visual Effects
  4. 4. Allows animation to be done freely
  5. 5. Unique Response according to author’s design</li></li></ul><li>No longer Needed<br />
  6. 6. Fundamentals<br />
  7. 7. Drawing an image(basic)<br />Specify the coordinate and paint<br />Coordinate X and Y and paint<br />Paint functions<br />Color<br />Alpha(transparent)<br />http://developer.android.com/reference/android/graphics/Paint.html<br />Canvas itself<br />Color(background)<br />
  8. 8. Drawing shape and text<br />
  9. 9. Adding Bitmap<br />
  10. 10. Text Size and alpha<br />
  11. 11. Response <br />onKeyDown(int, KeyEvent)<br />onKeyUp(int, KeyEvent)<br />onTrackballEvent(int, KeyEvent)<br />onTouchEvent(int, KeyEvent)<br />
  12. 12. Question and Sharing<br />
  13. 13. Thank you <br />

×