Hi,

You can use the invalidate(int left, int top, int right, int bottom)  or the
invalidate(Rect dirty) methods to invalidate a clip area:
http://code.google.com/android/reference/android/view/View.html#invalidate(int,%20int,%20int,%20int)

For sample code, check out the drawPoint() method inside the TouchPaint
class in APIDemos
http://code.google.com/android/samples/ApiDemos/src/com/google/android/samples/graphics/TouchPaint.html

private final Rect mRect = new Rect();
mRect.set(left,right,top,bottom);
invalidate(mRect);

Thanks,
Megha




On Mon, Mar 24, 2008 at 7:25 PM, bocol <[EMAIL PROTECTED]> wrote:

>
> I want to draw a specific area on a big View, but it will redraw all
> the area after call invalidate(). How can I set a clip area to make
> draw more efficiently? Thx!
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to