I'm playing around with rotation now.
Am I correct that I must use Blt and not BltFast?
Let's say I have a source image that is rectangular, and I want to rotate 30 degrees. So I specify 3000 rotation angle (100ths of degrees).
I want to rotate around the center of the image. I assume that is what the rotation angle specifies, though I haven't tried it yet. I don't want scaling or anything else, just rotation and keysrc transparency.
How do I specify the destination? Blt seems to take a destination rectangle, not a point. How do I compute my destination rectangle? It has to be bigger than the source rectangle, but how much?
Can't I just specify the source image, the rotation center, the rotation angle, and a destination point (that is the center of rotation in my destination surface)? That's all I need to specify my rotations.
If I don't use a destination rectangle, the rotation looks great but is merely centered on the screen, not what I need.
Also, that single rotation appears to take about 3ms on my iPAQ 3970. I am only using 14x71 from a source image. The only other flag is the keysrc. Is that typical performance or am I doing something wrong?
Am I correct that I must use Blt and not BltFast?
Let's say I have a source image that is rectangular, and I want to rotate 30 degrees. So I specify 3000 rotation angle (100ths of degrees).
I want to rotate around the center of the image. I assume that is what the rotation angle specifies, though I haven't tried it yet. I don't want scaling or anything else, just rotation and keysrc transparency.
How do I specify the destination? Blt seems to take a destination rectangle, not a point. How do I compute my destination rectangle? It has to be bigger than the source rectangle, but how much?
Can't I just specify the source image, the rotation center, the rotation angle, and a destination point (that is the center of rotation in my destination surface)? That's all I need to specify my rotations.
If I don't use a destination rectangle, the rotation looks great but is merely centered on the screen, not what I need.
Also, that single rotation appears to take about 3ms on my iPAQ 3970. I am only using 14x71 from a source image. The only other flag is the keysrc. Is that typical performance or am I doing something wrong?