Adjustment for the Autoscaling-Flag of Eclipse SWT #1693
Michael5601
started this conversation in
General
Replies: 2 comments 12 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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
integer200
which 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
@Deprecated
annotations, I propose setting the default value ofDswt.autoScale
toexact
. 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