In J2ME we have the clipRect() and setClip() to clip a region in the Graphics area. What is the equivalent apis available in BlackBerry and how do we use it?
+2
A:
See the blackberry API. pushRegion() for the clipRect(), don't know of exact setClip replacement.
http://www.blackberry.com/developers/docs/3.6api/net/rim/device/api/ui/Graphics.html
ilya.devyatovsky
2009-08-25 18:53:14
Actually I found that out in the Graphics class itself, if you provide the width, height and the offsets in the drawBitmap method, it automatically clips and anything beyond that width and height will not be painted or rather gets cropped
Ram
2009-09-08 09:27:51
Thx for sharing!
ilya.devyatovsky
2009-09-11 16:24:44