Hi Everybody,
I have problems with modifying an image on pixel level (using IM 6.4.2.0 on
gentoo Linux):
#include <Magick++.h>
int main() {
Magick::Geometry geo(100,100);
Magick::Image image(geo, "red");
image.modifyImage();
Magick::PixelPacket *pp = image.getPixels(0,0,geo.width(),
geo.height());
for (unsigned int i=0; i<geo.width()*geo.height(); ++i, ++pp) {
*pp = Magick::Color("green");
}
image.syncPixels();
image.write("x.png");
}
The output is always an all-red image instead of the green I would expect here.
Am I doing something wrong? I have used code like above for years with IM
versions around 6.1.
Best regards,
Christian
--
http://www.lackas.net/
http://www.spect-ct.com/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users