We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Can I draw text and images in isometric perspective?

Medium Priority
990 Views
Last Modified: 2012-05-11

Hello, I am using GDI in VB.NET to plot a series of analysis points superimposed over a picture.  We have a need to show some things in depth so I am adding a mode to plot the points in accordance to an isometric XYZ axis instead of the plan view.  Previously I was using Graphics.DrawImageUnscaled to show my image before I would draw the points, is there a .NET GDI method to rotate the space and draw the image as if I was looking at it from the isometric perspective?

Thanks for any help.
Comment
Watch Question

omegaomegaDeveloper
CERTIFIED EXPERT

Commented:
Hello, riceman0,

I have never done this, but I expect that you will find the Transform property and associated methods of the Graphics class to be helpful for this purpose.  In particular, have a look at the RotateTransform, MultiplyTransform and ResetTransform methods.

Cheers,
Randy
 

Author

Commented:

I've looked at those briefly, they can rotate and zoom the subsequent GDI commands, but I don;t think they can achieve any sort of perspective; e.g., rotation back into the screen.  There do seem to be dozens of image draw commands, was hoping there was an option buried in one of those parameters...
Developer
CERTIFIED EXPERT
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Author

Commented:

" I think that you will probably have to create your own transform matrix and assign it to the Transform property"

Oh, if this works and can achieve kind of an isometric depth effect then it might be just the ticket.  I was certainly expecting to have to work through a little matrix math...
omegaomegaDeveloper
CERTIFIED EXPERT

Commented:
Hi, riceman0,

I've never used Direct3D, and maybe it is precluded by your GDI+ requirement, but perhaps it's worth considering.  If staying with GDI+, perhaps the article at:

    http://www.simple-talk.com/dotnet/.net-framework/building-a-simple-3d-engine-with-silverlight/

might provide some helpful guidance.

Cheers,
Randy
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.