The Wayback Machine - https://web.archive.org/web/20260114205549/https://github.com/python/cpython/pull/118228
Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Apr 24, 2024 •

  • 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_ parameter to PhotoImage methods copy(), zoom() and subsample().
  • Add zoom and subsample parameters to PhotoImage method copy().

📚 Documentation preview 📚: https://cpython-previews--118228.org.readthedocs.build/

* 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_ parameter to PhotoImage methods copy(), zoom() and subsample().
* Add zoom and subsample parameters to PhotoImage method copy().
@serhiy-storchaka serhiy-storchaka force-pushed the tkinter-photoimage-copy branch from 49c8eaf to 0afa381 Compare May 6, 2024 12:37
@serhiy-storchaka serhiy-storchaka merged commit 1b639a0 into python:main May 6, 2024
@serhiy-storchaka serhiy-storchaka deleted the tkinter-photoimage-copy branch May 6, 2024 14:33
SonicField pushed a commit to SonicField/cpython that referenced this pull request May 8, 2024
…ythonGH-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().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant