Skip to content

Conversation

@akoch-yatta
Copy link
Contributor

This PR extends the usage of ImageGcDrawar to support SWT.Transparency as style that will initialize each GC with a proper transparent bitmap.

Important:
Adaption for GTK and Cocoa will be added when we agree on the approach

I can extract to DPIUtil change into a separate PR

@github-actions
Copy link
Contributor

github-actions bot commented Apr 28, 2025

Test Results

   545 files  ±0     545 suites  ±0   32m 47s ⏱️ + 1m 4s
 4 374 tests ±0   4 356 ✅ ±0   18 💤 ±0  0 ❌ ±0 
16 638 runs  ±0  16 498 ✅ ±0  140 💤 ±0  0 ❌ ±0 

Results for commit 6b1f436. ± Comparison against base commit 65ffcb0.

♻️ This comment has been updated with latest results.

@akoch-yatta akoch-yatta force-pushed the image-imagedata-scaling branch 5 times, most recently from 637e5cd to 42fc381 Compare April 29, 2025 13:56
@akoch-yatta
Copy link
Contributor Author

@fedejeanne Can you test this one on MacOS? With Snippet367 you should see the transparent drawing working or not.

@fedejeanne
Copy link
Member

@fedejeanne Can you test this one on MacOS? With Snippet367 you should see the transparent drawing working or not.

👍 I'll carve out some time later this week to test it on my Mac at home.

@akoch-yatta akoch-yatta force-pushed the image-imagedata-scaling branch from 42fc381 to 89dfb2b Compare April 30, 2025 09:30
This commit extends the usage of ImageGcDraware to support SWT.Transparency
as style that will initialize each GC with a proper transparent
bitmap.
@akoch-yatta akoch-yatta force-pushed the image-imagedata-scaling branch from 89dfb2b to 86731b5 Compare April 30, 2025 14:25
@fedejeanne fedejeanne force-pushed the image-imagedata-scaling branch 3 times, most recently from 5ae9c65 to 64388de Compare April 30, 2025 19:04
Copy link
Member

@fedejeanne fedejeanne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed all implementations and also tested in Mac and Linux at home. I made some small modifications (reduced visibility of new methods) and also undid the change in line 701 of the Image class in linux in 64388de . The reason is that this change does not seem to belong in this PR and it may introduce undesired behavior. I also double-checked what we discussed in our call today and it is true that DPIUtil.getDeviceZoom() not always returns 100 on Linux, which is why I decided not to take any chances and I simply undid that change. If you still think that the change is necessary then please propose a follow-up PR and let us discuss the reason there.

This commit adapts the smooth scaling implementation to use
ImageGcDrawer.
@fedejeanne fedejeanne force-pushed the image-imagedata-scaling branch from 64388de to 6b1f436 Compare April 30, 2025 19:28
@fedejeanne
Copy link
Member

... also undid the change in line 701 of the Image class in linux in 64388de .

@akoch-yatta doing that let 2 tests fail in Linux so I had to revert back to currentDeviceZoom = 100 in line 701. Let us discuss the why more in detail next week

@fedejeanne fedejeanne marked this pull request as ready for review April 30, 2025 19:41
@fedejeanne
Copy link
Member

fedejeanne commented Apr 30, 2025

The failing checks are due to infrastructure problems

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.

2 participants