After copying image in Magick++ saving to RGBA doesn't work
Posted: 2009-02-17T08:33:15-07:00
Here's a code that illustrates my problem
After execution, C:/test1 is filled with incorrect data.. If I save test object to any other, non raw format (png, jpg.. ), everything works fine..
Also if I perform save with image object, directly, without copying, everything also works fine.. This is a recent bug I can verify that it didn't exist in 6.4.6-0 and that it exists in 6.4.9-4. If there's any way I can help with this bug(i.e. determine exact version of IM in which this bug started occurring).. drop me a message here, since this one is really a high priority bug for me .. Thanks.
Code: Select all
Image image (Magick::Geometry(1024,1024), Magick::Color(255,255, 0));
image.fillColor(Magick::Color(0,0,255));
image.draw(DrawableRectangle(100,100,200,200));
Magick::Image test = image;
test.magick("RGBA");
test.write("C:/test1");
Also if I perform save with image object, directly, without copying, everything also works fine.. This is a recent bug I can verify that it didn't exist in 6.4.6-0 and that it exists in 6.4.9-4. If there's any way I can help with this bug(i.e. determine exact version of IM in which this bug started occurring).. drop me a message here, since this one is really a high priority bug for me .. Thanks.