Skip to content

Conversation

arunjose696
Copy link
Contributor

@arunjose696 arunjose696 commented Oct 14, 2025

This change introduces support for loading and drawing images at custom sizes in the GTK versions of GC and Image. The GC#drawImage() method, which only accepts the destination position and size, now attempts to load image at the destination size in case if it is provided by ImageFilenameProvider returning svgs or if the image is created with a imageDataAtSizeProvider.

Changes can be tested with snippets in #2526 for svgs and the tests with image dataAtSize provider which are enabled for linux along with this PR

Copy link
Contributor

github-actions bot commented Oct 14, 2025

Test Results

  115 files  ±0    115 suites  ±0   12m 31s ⏱️ +3s
4 553 tests  - 1  4 538 ✅ ±0  15 💤  - 1  0 ❌ ±0 
  311 runs  ±0    308 ✅ ±0   3 💤 ±0  0 ❌ ±0 

Results for commit aac5085. ± Comparison against base commit d2de8e3.

This pull request removes 1 test.
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_graphics_GC ‑ test_drawImageLorg_eclipse_swt_graphics_ImageIIII_ImageDataAtSizeProvider(int)

♻️ This comment has been updated with latest results.

This change introduces support for loading and drawing images at custom sizes in the GTK versions of GC and Image.
The GC#drawImage() method, which  only accepts the destination position and size, now attempts to load image at the destination size in case if it is provided by
ImageFilenameProvider returning svgs or if the image is created with a imageDataAtSizeProvider.
@arunjose696 arunjose696 force-pushed the arunjose696/467/IDSP_linux branch from fe6a332 to aac5085 Compare October 17, 2025 16:20
@arunjose696 arunjose696 marked this pull request as ready for review October 17, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extend ImageDataAtSizeProvider support to Linux

1 participant