Loading Image into plain Array with Magick++

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
LonelyStar

Loading Image into plain Array with Magick++

Post by LonelyStar »

Hi,

I am completly new to Image Magick.
What is the most efficient way to store a ImageMagick greyscale image to a simple (unsigned char) array?
I am using Magick++.
Thanks!

Nathan
rmagick
Posts: 245
Joined: 2006-03-16T17:30:48-07:00
Location: Durham, NC, USA

Re: Loading Image into plain Array with Magick++

Post by rmagick »

Check out Magick::Image.write in Magick++/lib/Image.cpp.
Post Reply