diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-05-06 14:33:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-06 14:33:15 (GMT) |
commit | 1b639a04cab0e858d90e2ac459fb34b73700701f (patch) | |
tree | a76e34ec01d564451def7ddbe8dc7da2940848c0 /Doc/whatsnew | |
parent | 09871c922393cba4c85bc29d210d76425e076c1d (diff) | |
download | cpython-1b639a04cab0e858d90e2ac459fb34b73700701f.zip cpython-1b639a04cab0e858d90e2ac459fb34b73700701f.tar.gz cpython-1b639a04cab0e858d90e2ac459fb34b73700701f.tar.bz2 |
gh-118225: Support more options for copying images in Tkinter (GH-118228)
* Add the PhotoImage method copy_replace() to copy a region
from one image to other image, possibly with pixel zooming and/or
subsampling.
* Add from_coords parameter to PhotoImage methods copy(), zoom() and subsample().
* Add zoom and subsample parameters to PhotoImage method copy().
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.13.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index 0b75665..67e7fbe 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -882,6 +882,15 @@ tkinter * Add the :meth:`!after_info` method for Tkinter widgets. (Contributed by Cheryl Sabella in :gh:`77020`.) +* Add the :class:`!PhotoImage` method :meth:`!copy_replace` to copy a region + from one image to other image, possibly with pixel zooming and/or + subsampling. + Add *from_coords* parameter to :class:`!PhotoImage` methods :meth:`!copy()`, + :meth:`!zoom()` and :meth:`!subsample()`. + Add *zoom* and *subsample* parameters to :class:`!PhotoImage` method + :meth:`!copy()`. + (Contributed by Serhiy Storchaka in :gh:`118225`.) + traceback --------- |