diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-05-06 15:06:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-06 15:06:06 (GMT) |
commit | 709ca90a00e66cea432096a7ba61aa6459d2a9a7 (patch) | |
tree | 5bbf405d454b36df9f334b0a9a7e4fae361cdcc1 /Misc | |
parent | fc50f1bdbad3aa52d7cbd3cb836a35806266ec54 (diff) | |
download | cpython-709ca90a00e66cea432096a7ba61aa6459d2a9a7.zip cpython-709ca90a00e66cea432096a7ba61aa6459d2a9a7.tar.gz cpython-709ca90a00e66cea432096a7ba61aa6459d2a9a7.tar.bz2 |
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().
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2024-04-25-11-49-11.gh-issue-118271.5N2Xcy.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-04-25-11-49-11.gh-issue-118271.5N2Xcy.rst b/Misc/NEWS.d/next/Library/2024-04-25-11-49-11.gh-issue-118271.5N2Xcy.rst new file mode 100644 index 0000000..7f11602 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-04-25-11-49-11.gh-issue-118271.5N2Xcy.rst @@ -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`. |