# Rotate image correctly [closed]

I'm using Emgu to rotate a very large image (7085w x 9920h)

However, after rotating it , he seems to "Invert" width and height. On the rotated image (using Windows Image Viewer), after rotating it 90 degrees the image has 9920w x 7085h.

With Emgu, after rotating and saving it (testing), the image has 7085w x 9920h.

What can be happening in that case ? I'm passing the correct parameters, but i've got no idea why this behaviour is happening.

newImage = newImage.Rotate(90, new Bgr(0, 0, 0));


edit retag reopen merge delete