tags:

views:

641

answers:

3

I'm working on a new C# application using WPF. I was under the impression that WPF was vector based and that text/buttons would be drawn in a resolution independent way. When running my application it’s fairly obvious that my application isn’t being drawn using vectors. Some of the text gets fairly blocky, and when using the windows magnifying glass you can see rough edges on everything.

Is there something special I need to do in my application to turn vector drawing on? Or is something wrong with my specific machine? (I'm running Windows Vista x64 with the latest graphics drivers)

A: 

The magnifying glass in Vista isn't particularly clever. It just blows up the already rasterized image from your screen. To see that a text box is actually vector based, try adjusting your DPI settings.

EDIT: From the comments, it seems like the magnifying glass in Vista is supposed to do vector scaling after all. It certainly doesn't on this computer (Vista 32-bit), so I may be having the same issues. DPI scaling works, though...

Tormod Fjeldskår
Actually, the magnifying glass in XP isn't particularly clever. The Vista one is supposed to do correct scaling of vector graphics, and has when I've tried it.
Kent Boogaart
The Vista magnifier does do correct vector scaling. I've seen it before in a WPF application, I'm just not sure why it isn't working in mine.
Varin
Really? The magnifying glass on this computer (Vista 32-bit) does not scale my WPF apps correctly. I always assumed it was because it didn't support it, but I may be experiencing the same issue as OP then...
Tormod Fjeldskår
+3  A: 
Ian Boyd
A: 

hello, does it just not work anymore because of the magnifying glass in windows 7 or also because of changes in the WPF framework? e.g. if I would run a .NET Framework 4 application on vista, would i be able to do vector based scaling using the magnifyer? thanks!

stefan.at.wpf
As far as I can tell, this is a change in the magnifying glass in both Windows Vista, and Windows 7, not a change in the Framework. The magnifying glass doesn't do vector based scaling anymore regardless of which OS or framework version.
Varin