Does the ImageTk.PhotoImage support alpha channels?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Does the ImageTk.PhotoImage support alpha channels?

python@bdurham.com
Does the ImageTk.PhotoImage support alpha channels? If not, are there
any plans to add support for this feature or is the lack of this
functionality a limitation of Tkinter?

Thank you,
Malcolm
_______________________________________________
Image-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/image-sig
Reply | Threaded
Open this post in threaded view
|

Re: Does the ImageTk.PhotoImage support alpha channels?

Fredrik Lundh
2010/12/20  <[hidden email]>:
> Does the ImageTk.PhotoImage support alpha channels? If not, are there
> any plans to add support for this feature or is the lack of this
> functionality a limitation of Tkinter?

Yes, RGBA images are supported.  In versions before 8.4, the A layer
is handled as a mask, not a true alpha layer, but later versions
should handle it correctly.

</F>
_______________________________________________
Image-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/image-sig