6.3.8. Drawing Graphics Using Paint and Canvas

We use methods of class Canvas (package android.graphics) to draw text, lines and circles. Canvas methods draw on a View’s Bitmap. Each drawing method in class Canvas uses an object of class Paint (package android.graphics) to specify drawing characteristics, including color, line thickness, font size and more. These capabilities are presented with the drawGameElements method in Section 6.8. For more details on the drawing characteristics you can specify with a Paint object, visit

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset