MantisBT - ParaView
View Issue Details
0012018ParaViewBugpublic2011-03-28 22:372016-07-13 20:44
Alan Scott 
Marcus D. Hanwell 
normalminoralways
closedfixed 
 
 
Sandia
0012018: Save screenshots and 2d windows different.
From a user:

The attached figs show the result of a 'Save Screenshot' in PV 3.10.0 64 bit, vs. what's actually on the screen (captured with PrtSc). In the line-plots, 'Save Screenshot' changed both the font and tick-marks from what's on the screen. I manually increased the rez for the screenshot, but would like the fonts etc to stay the same.
 
No tags attached.
related to 0006096closed Ken Moreland Text is not scaled appropriately when rendering high-res movies 
png n10.png (167,217) 2011-03-28 22:37
https://www.vtk.org/Bug/file/8782/n10.png
png

png Screenshot-ParaView_3_10_0_64-bit.png (214,601) 2011-03-28 22:38
https://www.vtk.org/Bug/file/8783/Screenshot-ParaView_3_10_0_64-bit.png
png
Issue History
2011-03-28 22:37Alan ScottNew Issue
2011-03-28 22:37Alan ScottFile Added: n10.png
2011-03-28 22:38Alan ScottFile Added: Screenshot-ParaView_3_10_0_64-bit.png
2011-03-29 10:02Utkarsh AyachitNote Added: 0025952
2011-03-29 10:02Utkarsh AyachitAssigned To => Marcus D. Hanwell
2011-03-29 10:02Utkarsh AyachitStatusbacklog => tabled
2011-03-29 10:47Ken MorelandNote Added: 0025953
2011-03-29 10:47Ken MorelandRelationship addedrelated to 0006096
2011-09-01 10:56Utkarsh AyachitProject => Sandia
2016-07-13 20:44Alan ScottNote Added: 0036438
2016-07-13 20:44Alan ScottStatusbacklog => closed
2016-07-13 20:44Alan ScottResolutionopen => fixed

Notes
(0025952)
Utkarsh Ayachit   
2011-03-29 10:02   
Note the different you see if because when you saved the screenshot you requested a 2400x1800 image, while on screen you are seeing a approx 1300x950 image. In the plots, the fonts have fixed "pixel size". So when you when you save a larger image, the fonts seemed scaled down.

We should be scaling the fonts on the chart views (similar to what the render views do for 2D text).
(0025953)
Ken Moreland   
2011-03-29 10:47   
This is actually a pretty common scenario. Someone will be using a desktop or laptop with a moderate display and want to create screenshots of a high resolution. We already encountered this font problem with the fonts in 3D views (text source, color bar, etc.). You used to have to make these huge fonts and hope that they came out in the right size and position.

I fixed that by, as you suggested, scaling the fonts based on the image size. This resizing happened regardless of whether rendering to a window or creating a screenshot.

There is a static function in vtkTextActor called GetFontScale that the current 3D widgets use to scale fonts based on the screen size. vtkTextActor also has an example of using this function. For consistency, the charts should probably use the same method.
(0036438)
Alan Scott   
2016-07-13 20:44   
This looks really good. I replicated the images below with disk_out_ref, and clip.

Tested local server, Linux, 5.1.1