mirror of
https://github.com/python/cpython
synced 2026-09-28 03:33:18 +03:00
gh-118271: Support more options for reading/writing images in Tkinter (GH-118273)
* Add PhotoImage.read() to read an image from a file. * Add PhotoImage.data() to get the image data. * Add background and grayscale parameters to PhotoImage.write().
This commit is contained in:
parent
fc50f1bdba
commit
709ca90a00
4 changed files with 221 additions and 15 deletions
|
|
@ -0,0 +1,4 @@
|
|||
Add the :class:`!PhotoImage` methods :meth:`~tkinter.PhotoImage.read` to
|
||||
read an image from a file and :meth:`~tkinter.PhotoImage.data` to get the
|
||||
image data. Add *background* and *grayscale* parameters to
|
||||
:class:`!PhotoImage` method :meth:`~tkinter.PhotoImage.write`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue