Code: Select all
Image image("C:/Documents and Settings/All Users/Documents/My Pictures/Sample Pictures/Winter.jpg");
MagickCore::SetImageVirtualPixelMethod(image.image(), MagickCore::ConstantVirtualPixelMethod);
DrawableAffine affine(1.0, 1.0, 0, 0, 0.0, 0.0);
image.affineTransform(affine);
image.write("test.jpg");
The resulting image is 1 pixel wider, and 1 pixel higher then the original. Also the image itself is translated by one pixel to the right, and one pixel down.
Is this a bug ? Or am I doing something wrong ?