The latter (canvas.drawCircle) his definitely more efficient, both  
from a garbage-collection p.o.v., and it gives the renderer the chance  
to take whatever shortcuts it can, since it knows what you're trying  
to draw (as opposed to an arbitrary path).


On Nov 12, 2008, at 12:34 PM, Greg wrote:


You need the style set to STROKE as Peli mentions.  You can also use
canvas.drawCircle() directly instead of creating a path and adding a
circle to the path.  Not sure which is more efficient, but you can at
least drop 2 lines of code from your chunk there.

Greg




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to