Skip to content

Commit 38a4ce0

Browse files
committed
Add N&N entry for consistent image scaling in GC#drawImage() methods
1 parent 146f520 commit 38a4ce0

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

news/4.40/platform_isv.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,31 @@ Newly available effects include:
8484
<img src="images/graphics-example-ripple.gif" alt="Ripple effect" width="400">
8585

8686
<img src="images/graphics-example-scroll.gif" alt="Scroll effect" width="400">
87+
88+
### Consistent Scaling of Images across GC#drawImage() Methods
89+
<!-- https://github.com/eclipse-platform/eclipse.platform.swt/pull/3201 -->
90+
<!-- https://github.com/eclipse-platform/eclipse.platform.swt/pull/3246 -->
91+
<details>
92+
<summary>Contributors</summary>
93+
94+
- [Patrick Ziegler](https://github.com/ptziegler)
95+
- [Heiko Klare](https://github.com/HeikoKlare)
96+
</details>
97+
98+
Over the last few releases,
99+
image scaling in `GC#drawImage()` has been progressively improved
100+
to always pick the best-available image source for the required scale.
101+
This includes high-resolution raster variants (e.g. `@2x`) and on-demand SVG rasterization.
102+
103+
This release completes that work:
104+
105+
- All `GC#drawImage()` overloads now apply high-quality scaling
106+
consistently across all platforms.
107+
- Any `Transform` active on the `GC` is now taken into account
108+
when choosing the image source and scaling method,
109+
preventing blurry output when a non-identity transform is in use.
110+
111+
You get sharper image rendering in custom-drawn widgets
112+
on HiDPI displays or when using zoom features,
113+
regardless of which `drawImage()` variant or platform is used.
114+

0 commit comments

Comments
 (0)