Getting pixels to byte array[]
Posted: 2013-05-20T07:31:37-07:00
Hi i'd like create function which gets as parametr byte array with all image data like:
:BlueGreenRedAlpha:BlueGreenRedAlpha:BlueGreenRedAlpha:BlueGreenRedAlpha:BlueGreenRedAlpha
Blue is byte, Green is Byte etc. Width and Height is known. Now how can i convert byte array such like this to PixelPacket and create from it Image for later editing. After that i'd like to convert back PixelPacket from Image to byte array. Does anyone know any solution for this?
:BlueGreenRedAlpha:BlueGreenRedAlpha:BlueGreenRedAlpha:BlueGreenRedAlpha:BlueGreenRedAlpha
Blue is byte, Green is Byte etc. Width and Height is known. Now how can i convert byte array such like this to PixelPacket and create from it Image for later editing. After that i'd like to convert back PixelPacket from Image to byte array. Does anyone know any solution for this?