How to clip rectangle

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

How to clip rectangle

Postby ashish » Mon Apr 20, 2009 5:00 pm

hello everybody,

Does anybody know how to clip any small part of a rectangle.
i tried a lot but not getting how to do that.....

can any one help me..please..

below is my code for drawing simple rectangle..

paint.setColor(Color.RED);
paint.setStyle(Paint.Style.STROKE);
paint.setStrokeWidth(3);
RectF rectf1=new RectF(spoint.x-35,spoint.y-40,(spoint.x-34)+80,(spoint.y-40)+45);
canvas.drawRoundRect(rectf1, 0, 0, paint);
ashish
Experienced Developer
Experienced Developer
 
Posts: 62
Joined: Fri Feb 20, 2009 8:09 am

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 1 guest