Quote Originally Posted by edbayani11 View Post
i level my photos by using the measure tool and in this case use it on the vertical lines of the window. then go to rotate canvas and choose arbitrary and automatically it gives you how many degrees it is off. click ok and it will do the rest. you will lose some of the image because of cropping or if you have the patience, extend the missing portions to the blank areas using the available existing areas.
i attached an example. i hope you don't mind, bambi.
I use the same method in Photshop. In lightroom there is a straightening tool.