Avatar of riceman0
riceman0
 asked on

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


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.
.NET ProgrammingVisual Basic.NETC#

Avatar of undefined
Last Comment
riceman0

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Neun123

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Robert Schutt

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
riceman0

ASKER

I was trying it, thank you.  It's complex and I haven't tried it before. What I'm playing with is if I can combine his techniques to make one end of an area appear smaller than the other; perspective.  Thank you though, you've both earned some points and I will close this out soon.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy