title: error with setPixels
body: <p>i am trying to edit images. but i am getting errors with setPixels.</p>
  
  <pre><code>        picw = pic.getWidth();
          pich = pic.getHeight();
          picsize = picw*pich;        
          int[] pix = new int [picsize];
          pic.getPixels(pix, 0, picw, 0, 0, picw, pich);  
          pic.setPixels(pix,0,pic.getWidth(),0,0,pic.getWidth(),pic.getHeight());
  </code></pre>
  
  <p>but i am getting illegal state exception with setPixels</p>
  
  <pre><code>Caused by: java.lang.IllegalStateException
    at android.graphics.Bitmap.setPixels(Bitmap.java:878)
    at com.sandyapps.testapp.testapp.onCreate(testapp.java:66)
  </code></pre>