Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Blurry Diagram Print (Read 2487 times)
riemaecker
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Jul 31st, 2009
Blurry Diagram Print
Jul 31st, 2009 at 3:16pm
Print Post  
We use our own Paginator to print the diagram, which can be used with any UIElement. I make use of the DocumentPlane to paginate the graphic.
Unfortunately, the print output is always blurry, and it doesn't make any difference when I replaced our paginator with the DiagramPaginator.
This is an issue which is annoying me for a long time. Today, I had an interesting discovery:
In Mole, a WPF Debugger Visualizer (I hope it is familiar to you) which is able to display the visual tree, the preview for the DocumentPlane has a similar blur like the print output we get, while any other Visual previewed with Mole is displayed adequatly.

It would be very helpful if anybody has an explanation for this phenomen. It certainly relates to the problem we have.

My assumption is that while using VisualBrush's (like  it's done with Paginator), something special has to be considered in order to have a clean output. And I'm sure that the Mole Debugging Visualizer actually uses a VisualBrush in it's preview.

Here's a screenshot of the Visualizer with the DocumentPlane:


and here as the content of our scrollviewer
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Blurry Diagram Print
Reply #1 - Jul 31st, 2009 at 4:27pm
Print Post  
What happens if you enable SnapsToDevicePixels for the element that displays the VisualBrush?
  
Back to top
 
IP Logged
 
riemaecker
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Jul 31st, 2009
Re: Blurry Diagram Print
Reply #2 - Aug 3rd, 2009 at 8:27am
Print Post  
Unfortunately, that doesn't affect anything. Besides, the blur can't be a product of the commong device pixel overlapping problem.

On the first line, every clue why the graphic differs is helpful. "Mole for Visual Studio" uses a VisualBrush or RenderTargetToBitmap, similar to printing the diagram.
The Mole Developers don't know anything, because the problem manifests itself for the first time only with the Mindfusion Diagraming Component.

So any hint about this problem automatically helps me resolve our print problem, which seems to be related Smiley
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Blurry Diagram Print
Reply #3 - Aug 4th, 2009 at 3:40pm
Print Post  
I got the following images in Mole, using mostly default diagram settings. I don't think there is any blurring, other than the usual WPF anti-aliasing. Are you perhaps using MeasureUnit different than WpfPoint, or ZoomFactor different than 100? In that case the graphics primitives might end up placed at fractional device coordinates, even if the objects have integer coordinates in the logical CS, and that might cause some heavier blur effect.

Stoyan


  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint