Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions news/4.40/platform_isv.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,31 @@ Newly available effects include:
<img src="images/graphics-example-ripple.gif" alt="Ripple effect" width="400">

<img src="images/graphics-example-scroll.gif" alt="Scroll effect" width="400">

### Consistent Scaling of Images across GC#drawImage() Methods
<!-- https://github.com/eclipse-platform/eclipse.platform.swt/pull/3201 -->
<!-- https://github.com/eclipse-platform/eclipse.platform.swt/pull/3246 -->
<details>
<summary>Contributors</summary>

- [Patrick Ziegler](https://github.com/ptziegler)
- [Heiko Klare](https://github.com/HeikoKlare)
</details>

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.
This includes high-resolution raster variants (e.g. `@2x`) and on-demand SVG rasterization.

This release completes that work:

- All `GC#drawImage()` overloads now apply high-quality scaling
consistently across all platforms.
- 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.

You get sharper image rendering in custom-drawn widgets
on HiDPI displays or when using zoom features,
regardless of which `drawImage()` variant or platform is used.