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