title: Android Bitmap Manipulation
body: <p>Can you tell me what's wrong with this piece of code?</p>
  
  <pre><code>//bmp is a bitmap of already present image
  int width=bmp.getWidth();
  int height=bmp.getHeight();
  int rgbval[]=new int[width*height];
  bmp.getPixels(rgbval, 0, width, 0, 0, width, height);
  rgbval=actual(rgbval);
  Bitmap bmp2=bmp.copy(Bitmap.Config.ARGB_8888,true);
  bmp2.setPixels(rgbval, 0, width, 0, 0, width, height);
  </code></pre>
  
  <p><code>actual</code> is a function I have created to manipulate the rgb values of a bmp. By using debug functions of eclipse I have checked that it is working correctly , but when I try to recover rgb values of bmp2 , I don't get the manipulated values.</p>