| Store | Cart

Scaling an ImageTk.PhotoImage

From: Martin Franklin <mfra...@gatwick.westerngeco.slb.com>
Tue, 09 Mar 2004 09:44:33 +0000
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.


HTH
Martin

Recent Messages in this Thread
James Anderson Mar 09, 2004 09:35 am
Martin Franklin Mar 09, 2004 09:44 am
Fredrik Lundh Mar 14, 2004 05:32 pm
Messages in this thread