I'm trying to code two rotate functions (any angle) for bitmaps for my dll.
The first function works via Get/SetPixel and it works fine, but slow.

The second function should work with a byte array, created by GetDIBits(). I rotate the bytes and show
it to screen via SetDIBitsToDevice, but there is always an error in it, it looks like a ghostpicture.
When I show the rotated bytes on screen via SetPixel, it works fine.
I've tried it with bottom-up DIB's and with top-down DIB's, but there ist alway the error.
Has someone had the same problems ?

I've made many other picture effects with DIB's in my dll, but there was never such an error...

Sorry for my bad english...

Greetings, Nordwind64
Posted on 2002-05-14 14:05:00 by Nordwind64
work with a byte array
which color depth are you working with? If 8 bit, there may be an error with the palette? Could you post a small picture with the wrong output?
Posted on 2002-05-15 04:15:03 by beaster
Hi beaster,

I've found the error, my error...
A bad computing Y position, now it works correct.

Thank you,
Posted on 2002-05-15 09:22:35 by Nordwind64