WritableRaster in android
<p>I have following piece of code:</p>

<pre><code>private static byte[] accessBytes(Bitmap  image)
  // access the data bytes in the image
  {
    WritableRaster raster = image.getRaster();
    DataBufferByte buffer = (DataBufferByte) raster.getDataBuffer();
    return buffer.getData();
  }  // end of accessBytes()
</code></pre>

<p>I want to convert this code so that it will work in my android application, is there any way I can do that?
I also have the working code in java, can i make a class library of this code and then import in the android? will this work? </p>
