Code: Select all
Magick::Image image;
image.read(width, height, "K", Magick::IntegerPixel, data);
...
image.write("out.png");
zero, a few patches of 1, 2 .. ) however, when saved the image appears as all zero. I tried
saving to the pgm format and also tried image.type(Magick::GrayscaleType) and
image.colorSpace(Magick::GRAYColorspace) but to no avail. Anyone have any idea what's wrong
here? Im using imagemagick 6.2.4
Thanks,
Kevin