I'm in a bit of a tight spot. I have to write a function (module) that takes two filenames and rotates one to the right 90 degrees. The problem is, I can't use a Picture Box to convert the image bits to a DIB, it all has to be done in the API.

I have all day to do it, but I'm a bit lost. I have code to rotate the image, but then it's in a pointer to a DC with no header information (to my knowledge.) Does anybody have experience with this?