Getting pixels to byte array[]

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
smajler
Posts: 28
Joined: 2013-05-17T09:26:53-07:00
Authentication code: 6789

Getting pixels to byte array[]

Post by smajler »

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?
Post Reply