Hi,
Sorry if this is a newbie question (I'm just getting started with Image
Magick)!
I'd like to push pixel data into into Image Magick and write out a tif
file, but I'm getting a garbage image. The code looks something like this:
unsigned char *pixelArray = ... (allocate & fill with data).
MagickWandGenesis();
MagickWand *wand = NewMagickWand();
MagickConstituteImage(wand,width, height,"RGB",CharPixel, pixelArray);
MagickWriteImage(wand, "test.tif");
I've omitted error checking for clarity. Like I said, I get a garbage
image. I'm quite sure the pixel array is correct - I've tried a very
simple 4x4 pixel image and verified the data pixel-by-pixel. I've also
tried reading in pixel data from a good image, passing that known good
data into MagickConstituteImage(), and that also generates a garbage image!
I figure there must be some basic setting that I need to do on the wand
or the image to make this work ... can somebody point me in the right
direction? I'm banging my head against the wall here ...
Thanks!
Ken
--
_______________________________________________________________
Ken Greiner | Ph: (617)497-6880 x236
Manager, Core Software | Fax: (617)497-6882
COVENTOR | Cell Ph: (617)281-3091
[EMAIL PROTECTED] | skype: kengreiner
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users