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...