| Ticket UUID: | 54c2ca0e94b925d5dfbbcad202c57678c70791b8 | |||
| Title: | photo: pixels made semi-transparent with "transparency set ... -alpha" are drawn opaque | |||
| Type: | Bug | Version: | 9.0.5, 9.1b1 | |
| Submitter: | serhiy.storchaka | Created on: | 2026-09-24 19:11:46 | |
| Subsystem: | 41. Photo Images | Assigned To: | oehhar | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2026-10-20 20:40:13 | |
| Resolution: | Fixed | Closed By: | oehhar | |
| Closed on: | 2026-10-20 20:40:13 | |||
| Description: |
. configure -bg red
image create photo viaput -width 40 -height 40
viaput put #0000ff80 -to 0 0 40 40
image create photo viaset -width 40 -height 40
viaset put #0000ff -to 0 0 40 40
for {set y 0} {$y < 40} {incr y} {
for {set x 0} {$x < 40} {incr x} {viaset transparency set $x $y 128 -alpha}
}
pack [label .a -image viaput -bg red -bd 0] [label .b -image viaset -bg red -bd 0] -side left
Both images report alpha 128 (
| |||
| User Comments: |
oehhar added on 2026-10-20 20:40:13:
Also verified that tk9.1.0 release does not show the issue on MS-Win. Nevertheless, the image should be flagged as having transparent pixels. Thanks for all, Harald oehhar added on 2026-10-20 19:21:45: Tried the example with 9.0 on MS-Win. Fix is effective. So, committed to:
Bug closed. Thank you, Harald serhiy.storchaka added on 2026-10-19 17:36:47: Thank you, Harald. 9.1 is affected on X11 too (the ticket says: on X11 in 9.0.5 and 9.1b1, and on Windows in 9.0.5); only Windows 9.1 is not affected, because it draws the RGBA data directly. The branch photo-transparency-set-alpha is against main (rebased on 2026-10-15), and the fix also applies to 9.0. oehhar added on 2026-10-19 17:32:21: The ticket says, that 9.1 is not effected. But the patch is for 9.0. Nevertheless, this looks reasonable for both. May look-in again tomorrow. Thanks, Harald serhiy.storchaka added on 2026-09-24 19:16:25:
Proposed fix in branch photo-transparency-set-alpha ([3faec47822]): | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki