Skip to content

Bitmap.RotateFlip()

Tracy Baird

Asked Oct 27, 2009, 4:00 PM EDT1 answer
Share
LinkedInX
My question is why the file size goes from 1.7M to 450K when I open a Bitmap, rotate it 270 no flip, and then save it. The file that results is much smaller, but the dimensions did not change. If I open the Bitmap and then just save it back it is the exact same size. Does anyone know why adding the rotate alters the file size?

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    The bitmap size wont be changed until otherwise the resolution of the image is changed. Rotate will not change the file size as resolution is not changing. But one condition, if the file is created by another application and you open the image in ms paint and changes the image then the resolution might differ. Try this.

    Open MS Paint -> Create a new bit map file. Save that file -> Check the size. -> now rotate the same bit map -> Save it. -> Check the file size. Since here the same application saves the file there is no loss of resolution and the file size is not reduced.
    0