title: BlackBerry - Cropping image
body: <p>I want to crop a part of Image, for that I am using following code:</p>
  
  <pre><code>    int x=20;
      int y=50;
      int [] rgbdata=new int[(0+width-x+height-y)* (image.getWidth())];
      image.getARGB(rgbdata, 0, image.getWidth(), x, y, width, height);
      cropedImage=new Bitmap(image.getWidth(),image.getWidth());
      cropedImage.setARGB(rgbdata, 0,image.getWidth(), 80,80, width, height);
  </code></pre>
  
  <p>x an y are the position from where the cropping will be done in the rectangular form.
  but it is not working.</p>