a little more detail
authorTony Cook <tony@develop=help.com>
Thu, 10 Feb 2005 12:53:20 +0000 (12:53 +0000)
committerTony Cook <tony@develop=help.com>
Thu, 10 Feb 2005 12:53:20 +0000 (12:53 +0000)
lib/Imager/Transformations.pod

index dcda8b30d46ab0d2508e26eabcd72a2120433981..582fe0cec8abcdd996068d3d98ce3044fe3616d3 100644 (file)
@@ -109,11 +109,18 @@ variations and the scaled image is by more than 3-5 times smaller than
 the original.
 
 If you need to scale images per axis it is best to do it simply by
-calling scaleX and scaleY.  You can pass either 'scalefactor' or
+calling scaleX() or scaleY().  You can pass either 'scalefactor' or
 'pixels' to both functions.
 
+scaleX() will scale along the X dimension, changing the width of the
+image:
+
   $newimg = $img->scaleX(pixels=>400); # 400x500
   $newimg = $img->scaleX(scalefactor=>0.25) # 175x500
+
+scaleY() will scale along the Y dimension, changing the height of the
+image:
+
   $newimg = $img->scaleY(pixels=>400); # 700x400
   $newimg = $img->scaleY(scalefactor=>0.25) # 700x125