Draw Arc to Canvas

Put your problem here if it does not fit any of the other categories.

Draw Arc to Canvas

Postby venkat » Sat Mar 29, 2008 10:48 am

Hi to all,
Can you please tell me, how to draw filled Arc. i have tried Style.Fill, it's not filling the arc properly.
Please ne1 solve my problem.
:)
Regards,
Venkat.
venkat
Senior Developer
Senior Developer
 
Posts: 152
Joined: Tue Nov 27, 2007 5:42 am
Location: India

Top

Postby venkat » Sat Mar 29, 2008 11:14 am

just now only i got the solution.

Stroke width should equal to rectangular with. for example,

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.                     p.setStrokeWidth(150);
  2.  
  3.  
  4.  
  5.                     RectF arcRect = new RectF(50,200,200,350);
  6.  
  7.  
  8.  
  9.                         canvas.drawArc(arcRect, 0, 30, p);
Parsed in 0.031 seconds, using GeSHi 1.0.8.4

the above arc is perfectly filled arc. :)
Regards,
Venkat.
venkat
Senior Developer
Senior Developer
 
Posts: 152
Joined: Tue Nov 27, 2007 5:42 am
Location: India

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 13 guests