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)
| 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 |