Skip to content

gh-118225: Support more options for copying images in Tkinter #118228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant