title: Zooming With Python Image Library
body: <p>I'm writing a simple application in Python which displays images.I need to implement Zoom In and Zoom Out by scaling the image.<br />
  I think the <strong>Image.transform</strong> method will be able to do this, but I'm not sure how to use it, since it's asking for an <strong>affine</strong> matrix or something like that :P<br />
  Here's the quote from the docs:</p>
  <blockquote>
  <p>im.transform(size, AFFINE, data, filter) =&gt; image</p>
  <p>Applies an affine transform to the image, and places the result in a new image with the given size.</p>
  <p>Data is a 6-tuple (a, b, c, d, e, f) which contain the first two rows from an affine transform matrix. For each pixel (x, y) in the output image, the new value is taken from a position (a x + b y + c, d x + e y + f) in the input image, rounded to nearest pixel.</p>
  <p>This function can be used to scale, translate, rotate, and shear the original image.</p>
  </blockquote>