1

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?

Maksym Gontar
  • 22,765
  • 10
  • 78
  • 114
Prabhu R
  • 13,836
  • 21
  • 78
  • 112

1 Answers1

3

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

  • 2
    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 – Prabhu R Sep 08 '09 at 09:27