Welcome to Windows Presentation Foundation (WPF)
Top Tasks :

WPF Community Bloggers

High-Resolution Printing of WPF 3D Visuals

I received an email from a reader of 3D-Programmierung für Windows (the German translation of 3D Programming for Windows ) about printing scenes composed in WPF 3D. Some backbround: In the last chapter of my book (entitled "Applications and Curiosa") I discuss two ways of printing WPF 3D scenes. Both involve the handy PrintVisual method of PrintDialog . Because PrintVisual accepts any object created from a class that derives from Visual , you can print elements such as Viewport3D . However, you generally have more control over the size and placement of the printed image if you instead print objects of type Viewport3DVisual , a class that derives directly from Visual . Regardless which way you do it, you get jaggies. Apparently WPF 3D scenes always print at 96 DPI. I don't know why this is, but I suppose there's a good reason for it. My reader in Germany wasn't happy about that and wondered if there's a solution. More background: When writing 3D Programming for Windows I created many of Read More...
Published Friday, December 07, 2007 10:20 AM by Charles Petzold
Filed under:

Comments

No Comments
Anonymous comments are disabled

Copyright © 2006 Microsoft Corporation. All Rights Reserved. | Terms of Use | Privacy Statement | Contact Us