change bitmap image to pixels array
<p>I have to change it through android as in java I have</p>

<pre><code>byte[] pixels = ((DataBufferByte) image.getRaster().getDataBuffer()).getData();
</code></pre>

<p>(here image is BufferedImage), but</p>

<pre><code>int[] pixels;
image.getPixels(pixels, 0, width, 0, 0, width , height );  
</code></pre>

<p>(Here imgae is bitmap image)
returns the pixels value not as java.</p>
