Skip to content

Commit f4f9982

Browse files
committed
Add N&N entry for consistent image scaling in GC#drawImage() methods
1 parent 14a97fd commit f4f9982

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

news/4.40/platform_isv.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,23 @@ 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, image scaling in `GC#drawImage()` has been progressively improved to always pick the best-available image source for the required scale, including high-resolution raster variants (e.g. `@2x`) and on-demand SVG rasterization.
99+
100+
This release completes that work:
101+
102+
- All `GC#drawImage()` overloads now apply high-quality scaling consistently across all platforms.
103+
- Any `Transform` active on the `GC` is now taken into account when choosing the image source and scaling method, preventing blurry output when a non-identity transform is in use.
104+
105+
The result is sharper image rendering in custom-drawn widgets on HiDPI displays, regardless of which `drawImage()` variant or platform is used.
106+

0 commit comments

Comments
 (0)