Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
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...
Upcoming SlideShare
Loading in …5
×

Introduction to Canvas

8,381 views

Published on

by Tan Teck Loon

Published in: Technology
  • Be the first to comment

  • Be the first to like this

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 />

×