gh-118271: Support more options for reading/writing images in Tkinter by serhiy-storchaka · Pull Request #118273 · python/cpython

@serhiy-storchaka

…kinter

* 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().

SonicField pushed a commit to SonicField/cpython that referenced this pull request

May 8, 2024
…kinter (pythonGH-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().