Saturday, July 10, 2010

[android-developers] canvas.addArc problem

Hi

why the Path addArc don´t work like canvas.drawArc?

This code works well:

canvas.drawArc(rect, startAngle, sweepAngle, true, paint);

But this code don´t fill the ARC like the previous one.

Path path = new Path();
path.addArc(rect, startAngle, sweepAngle);
canvas.drawPath(path, paint);

The boolean "useCenter" parameter in the canvas.drawArc does the
magic. If you use usecenter=false it works like the Path version...
How can I use the canvas.drawPath with this usecenter=true logic?

thank you

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate