[Image-SIG] Zooming any image

Fredrik Lundh fredrik at pythonware.com
Wed Jan 9 16:16:00 CET 2008

Varsha purohit wrote:

>         In my program i have a gui where i am showing an image on the 
> panel. I want to implement zoom in and zoom out functions using wxpython 
> and PIL. I am tryin to find in PIL if there is any functionality like that.

the transpose(EXTENT) method is often used for this:


just pass in the size of the viewport and the area you want to display, 
given as a bounding box.


More information about the Image-SIG mailing list