Rotate Image 90 degrees FAST using win api
Posted on 2006-11-10
I have an image I have rendered (not loaded) into a PictureBox with .AutoRedraw=True. I need to rotate that image 90 degrees clockwise and save it to disk as a two-color black-and-white .bmp or .gif file. I need to do it FAST, so it has to be in-memory (GetPixel/SetPixel are out).
I will probably be using GetDIBits and SetDIBits, but unfortunately I am not familiar enough with the Windows API to just hammer out a function. Any help would be appreciated.