Sign in to follow this  
rtclawson

Difference between Renderform and Windows Form?

Recommended Posts

When I use a SlimDX RenderForm in the Visual Studio 2012 debugger, the output looks fine. However, when I use a Windows Form, the debugging information in the window is huge and pixelated. Any ideas on what I am doing wrong? I've attached an image of what the Windows Form looks like.

Share this post


Link to post
Share on other sites

The first idea I jump to is welcome to windows and DPI problems but it's not likely this is actually the case here.  Post code and give more information we can try to help, best we can guess is either you are letting the device context handle text scaling which would lead to DPI related scaling where windows tries to make your font's as big as the user wants instead of following your guidelines (although this normally doesn't have anything to do with rendering api's just WinForms) or that measuring systems, resolution, field of view, and or aspect ratios are different.  Quite a slew of "could be" things that can be mentioned, posting some code will narrow that down to some more likely culprits.

Share this post


Link to post
Share on other sites

So, I am not actually drawing the text. It is part of the Visual Studio debugging framework. My code is as bare bones as you can get. I am basically doing what you would find on the SlimDX tutorial for drawing a triangle, except I am not using the RenderForm class. This is what gives me my suspicion that that difference is the cause of the problem. One thing to point out also is the pixelated triangle. It just seems like something is wrong, but I don't have the background in graphics to tell you what it is.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this