-
Using Magick.NET-Q8-OpenMP-x64 v7.17.0.0 Hello, var newLength = Math.Sin(1.422346555) * 10000 + Math.Cos(1.422346555) * 10000;
Console.WriteLine(newLength);
// returns 11369,066856491 Of course there is no hundredth of a pixel so it has to be rounded up. But actually the rotated image is 11372 instead of 11370 pixels wide. Another image 5000 px wide resulted in a 5686 px wide rotated image with the same angle - which is one extra pixel after rounding up. So the question is: how does ImageMagick calculate the dimensions of a rotated image? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Short answer: there is more than one rounding-up. Long answer: see distort.c function DistortImage(). |
Beta Was this translation helpful? Give feedback.
Short answer: there is more than one rounding-up.
Long answer: see distort.c function DistortImage().