Adjustment for the Autoscaling-Flag of Eclipse SWT #1693
                  
                    
                      Michael5601
                    
                  
                
                  started this conversation in
                General
              
            Replies: 2 comments 17 replies
-
| 
 What will be the effect on existing PNGs? Will scaling them with  | 
Beta Was this translation helpful? Give feedback.
                  
                    12 replies
                  
                
            -
| ok from the screenshots I would say that this is not too bad | 
Beta Was this translation helpful? Give feedback.
                  
                    5 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    


Uh oh!
There was an error while loading. Please reload this page.
-
The proposed SVG rasterization feature in this PR introduces the ability to rasterize SVGs at arbitrary resolutions.
As this feature is an enhancement of the current API the output resolution of the rasterized image is selected by calling it with a specific zoom factor. This zoom factor is determined by SWT according to the flag
Dswt.autoScale.Right now the standard value for this flag is
integer200which works as follows:Under this default setting, no image scaling is performed. This behavior is intentional for PNGs, as scaling them mostly produces poor results. However, for SVGs, this approach means the correct resolution is never provided.
To fully leverage the benefits of the SVG rasterization feature, the
Dswt.autoScale-flag must be set toexact, enabling the generation of images at the correct resolution.In summary this discussion is about the question which value should be chosen as standard for the
Dswt.autoScale-flag.My suggestion is as follows:
Since there is no direct way to notify users about the new SVG feature, such as through
@Deprecatedannotations, I propose setting the default value ofDswt.autoScaletoexact. Users can still modify this setting in theeclipse.ini-file, as they currently do to address issues with small icons on high-DPI monitors.Beta Was this translation helpful? Give feedback.
All reactions