Rotating a Bitmap by an arbitrary angle
Can anyone give me a pointer as to a good technique that can be used to display a rectangular Bitmap on a form rotated though an arbitray angle? (ie not necessarily 90,180,270 degrees).
I know how to do the maths, I just need to know the process...
Do I really need to copy the Bitmap into Memory and then transform it pixel by pixel? I'm hoping that I don't. I'm also hoping to avoid calling non-managed code (I've seen examples of how to do it in C/C++). I would like to do it all in C#.
Any pointers appreciated. I'm sure someone here has done this before.
Re: Rotating a Bitmap by an arbitrary angle
oops!! Seemed I just needed to RTFM. ;) Will post the answer here when I have it.
Re: Rotating a Bitmap by an arbitrary angle
Re: Rotating a Bitmap by an arbitrary angle
Thanks, I'll check it out. I did find another example and managed to get it working. But I'll certainly compare it with this one....
Re: Rotating a Bitmap by an arbitrary angle
OK.
Would you like to share your approach here? Maybe you've used the transform matrix directly?
Re: Rotating a Bitmap by an arbitrary angle
I will soon, I'm still refactoring!!