Scaling an ImageTk.PhotoImage

Fredrik Lundh fredrik at pythonware.com
Sun Mar 14 12:32:38 EST 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?

did you mean Tkinter.PhotoImage?

if you really mean ImageTk.PhotoImage, is there any reason you
cannot just resize the original Image object, and wrap it in a new
ImageTk.PhotoImage object?

</F>







More information about the Python-list mailing list