Rotating bitmap images without resizing?
- October 12, 2022
- 1 reply
- 1381 views
Hi all:
i have a need to be able to rotate a greyscale 8 bit image by discrete angles, e.g. 10 deg, 13 deg, 22 deg, etc.. I have used the built-in rotate command and this does work, but ends up resizing the bitmap and translating the image. My solution thus far has been to find the center row and columns of the profile that has been rotated and translated, use the submatrix command to extract the array i want from the rotated/translated image, and then resave the bitmap. this approach works, but was wondering if there was a more efficient/clever method to avoid the rescaling/translation. I have attached a sample bitmap that i would like to be able to rotate and the same image I have rotated 18.86 degrees clockwise using the approach described above. Thanks..



