Android Question Rotate Bitmap Confusion (I must be stupid)

almontgreen

Active Member
Licensed User
I have a bitmap that is 1080 wide by 1920 tall and I want to rotate it to fit on the display that is 1920 wide by 1080 tall. I'm using Canvas.DrawBitmapRotated but no matter what sourceRect and DestRect with -90 rotation that I put in, I can't get the desired result which is to simply rotate the image by 90 degrees.

This really can't be this hard. The device does not rotate the screen, it stays in landscape mode. Surely there is an easy way to do this? The DrawBitmapRotated does rotate the image but squishes it I'm pretty sure because I have the wrong rects. For some reason I can't figure out the right ones to put in?
 
Top