java - WritableRaster in android -


i have following piece of code:

private static byte[] accessbytes(bitmap  image)   // access data bytes in image   {     writableraster raster = image.getraster();     databufferbyte buffer = (databufferbyte) raster.getdatabuffer();     return buffer.getdata();   }  // end of accessbytes() 

i want convert code work in android application, there way can that? have working code in java, can make class library of code , import in android? work?

yes, android supports java. can use java code in android event library. try starting @ developer.android.com.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -