troubleshooting Question

Least painful way to rotate an image in perspective and render using GDI

Avatar of riceman0
riceman0 asked on
.NET ProgrammingC#Visual Basic.NET
3 Comments2 Solutions444 ViewsLast Modified:

Hi, I am overriding the paint event and drawing bitmap objects to the screen using GDI and Graphics.DrawImage.  I would like to actually rotate the image back into the depth of the screen, i.e., the vector coming out of the screen rotated up and back so that the picture is "facing" upwards like in isometric view.  (Sort of like how the orange checkerboard "X" in experts exchange at the top of the page is sort of facing to the right)

I'm hoping against hope for a .NET function or parameter to DrawImage.  But I actually wouldn't mind doing the math myself to transform pixel by pixel -- if absolutely necessary.  But I wouldn't know the fastest way to store the resultant arbitrary pixel data and render it to the screen.  Building another bitmap (if possible?  just throwing darts.)  and calling DrawImage again seems slow.  

Really appreciate any thoughts.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros