Canvas has several clipRect methods, http://developer.android.com/intl/fr/reference/android/graphics/Canvas.html#clipRect%28float,%20float,%20float,%20float,%20android.graphics.Region.Op%29
Here is a more through explanation since you mentioned J2ME: http://jtomlinson.blogspot.com/2008/10/clipping.html The main key is passing in Region.Op.REPLACE On May 5, 8:36 am, pti4ik <pti...@yandex.ru> wrote: > Hello everybody! Can anyone tell me if there is a way to set a clip in > my Canvas to the specific rectangle, equivalent to setClip(x, y, > width, height) from class Graphics in J2ME? > I found only the ways to intersect my clip with a rectangle or region, > but not to move it to the specific position and size. > > Best regards, Andrew > > -- > You received this message because you are subscribed to the Google > Groups "Android Beginners" group. > > NEW! Try asking and tagging your question on Stack Overflow > athttp://stackoverflow.com/questions/tagged/android > > To unsubscribe from this group, send email to > android-beginners+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en