MCPcopy Index your code
hub / github.com/python/cpython / zoom

Method zoom

Lib/tkinter/__init__.py:4448–4457  ·  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

4446 return destImage
4447
4448 def zoom(self, x, y='', *, from_coords=None):
4449 """Return a new PhotoImage with the same image as this widget
4450 but zoom it with a factor of X in the X direction and Y in the Y
4451 direction. If Y is not given, the default value is the same as X.
4452
4453 The FROM_COORDS option specifies a rectangular sub-region of the
4454 source image to be copied, as in the copy() method.
4455 """
4456 if y=='': y=x
4457 return self.copy(zoom=(x, y), from_coords=from_coords)
4458
4459 def subsample(self, x, y='', *, from_coords=None):
4460 """Return a new PhotoImage based on the same image as this widget

Callers 6

xFunction · 0.80
TFunction · 0.80
AFunction · 0.80
NFunction · 0.80
d3.min.jsFile · 0.80
test_zoomMethod · 0.80

Calls 1

copyMethod · 0.95

Tested by 1

test_zoomMethod · 0.64