MCPcopy Index your code
hub / github.com/RustPython/RustPython / zoom

Method zoom

Lib/tkinter/__init__.py:4325–4334  ·  view source on GitHub ↗

Return a new PhotoImage with the same image as this widget but zoom it with a factor of X in the X direction and Y in the Y direction. If Y is not given, the default value is the same as X. The FROM_COORDS option specifies a rectangular sub-region of the source imag

(self, x, y='', *, from_coords=None)

Source from the content-addressed store, hash-verified

4323 return destImage
4324
4325 def zoom(self, x, y='', *, from_coords=None):
4326 """Return a new PhotoImage with the same image as this widget
4327 but zoom it with a factor of X in the X direction and Y in the Y
4328 direction. If Y is not given, the default value is the same as X.
4329
4330 The FROM_COORDS option specifies a rectangular sub-region of the
4331 source image to be copied, as in the copy() method.
4332 """
4333 if y=='': y=x
4334 return self.copy(zoom=(x, y), from_coords=from_coords)
4335
4336 def subsample(self, x, y='', *, from_coords=None):
4337 """Return a new PhotoImage based on the same image as this widget

Callers

nothing calls this directly

Calls 1

copyMethod · 0.95

Tested by

no test coverage detected