* Helmut Giese <
hgi...@ratiosoft.com>
| However I can't get it to work: Every image command I tried rejects
| the option '-alpha'. Do you maybe have an example of its use?
Check the photo(n) manpage:
https://www.tcl.tk/man/tcl/TkCmd/photo.html
FORMAT SUBOPTIONS
Some image formats support sub-options, which are specified at
the time that the image is loaded using additional words in the
-format option. At the time of writing, the following are
supported:
png -alpha alphaValue
An additional alpha filtering for the overall image, which
allows the background on which the image is displayed to
show through. This usually also has the effect of
desaturating the image. The alphaValue must be between 0.0
and 1.0.
--<snip-snip>--
The PNG image loader allows the application of an additional
alpha factor during loading, which is useful for generating
images suitable for disabled │ buttons: │
image create photo icon -file "icon.png" │
image create photo iconDisabled -file "icon.png" \ │
-format "png -alpha 0.5" │
button .b -image icon -disabledimage iconDisabled │
HTH
R'