-
March 26th, 2010, 07:45 PM
#1
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.
Rob
-
Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......
-
March 26th, 2010, 08:45 PM
#2
Re: Rotating a Bitmap by an arbitrary angle
oops!! Seemed I just needed to RTFM. Will post the answer here when I have it.
Rob
-
Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......
-
March 29th, 2010, 10:05 AM
#3
Re: Rotating a Bitmap by an arbitrary angle
-
March 29th, 2010, 05:01 PM
#4
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....
Rob
-
Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......
-
March 31st, 2010, 11:06 AM
#5
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?
-
March 31st, 2010, 05:55 PM
#6
Re: Rotating a Bitmap by an arbitrary angle
I will soon, I'm still refactoring!!
Rob
-
Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|