@ptrblck the angle of rotation can be other than 90 degrees. Also, the white part of the last image is the part of the image itself which is not been displayed in the first two images. In the last image, the whole image is rotated but by maintaining the aspect ratio. Can we set the size to make the rotation work for any degree of rotation?