Working with 2D graphics

satya - Wed Oct 17 2012 15:28:24 GMT-0400 (Eastern Daylight Time)

Here is the 2D graphics api docs

Here is the 2D graphics api docs

satya - Fri Oct 19 2012 09:34:50 GMT-0400 (Eastern Daylight Time)

android stroke color fill color 2D graphics

android stroke color fill color 2D graphics

Search for: android stroke color fill color 2D graphics

satya - Fri Oct 19 2012 09:39:05 GMT-0400 (Eastern Daylight Time)

Here is a good example using even a viewgroup: java2s

Here is a good example using even a viewgroup: java2s

satya - Fri Oct 19 2012 09:41:57 GMT-0400 (Eastern Daylight Time)

You control that through Paint.Style enumerations


paint.setStyle(Paint.Style...)
FILL
FILL_AND_STROKE
STROKE

satya - Fri Oct 19 2012 09:45:31 GMT-0400 (Eastern Daylight Time)

canvas.save and restore

These calls saves and restores the transformation matrix that is available on the canvas. A save is like a save checkpoint. Your intention is to do a lot of transformations and then go back to that check point.