Scaling an ImageTk.PhotoImage

Martin Franklin mfranklin1 at
Tue Mar 9 10:44:33 CET 2004

James Anderson wrote:
> I'm have a bitmap which I can display as an ImageTk.PhotoImage and would
> like to display it and double or quadruple size.  The bitmap itself is
> generated inside my program, so converting it to another format isn't
> really practical.  Does anyone know an easy way to do this?
> Thanks,
> James Anderson

A standard Tkinter.PhotoImage has a zoom method, a PIL ImageTK is AFAIK 
the same thing.

from pydoc Tkinter.PhotoImage:-

  |  zoom(self, x, y='')
  |      Return a new PhotoImage with the same image as this widget
  |      but zoom it with X and Y.


More information about the Python-list mailing list