cvs: pear /Image_Transform Transform.php
| From: | Peter Bowyer | Date: | Wed, 15 Oct 2003 16:25:03 +0000 |
| Subject: | cvs: pear /Image_Transform Transform.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-13628@lists.php.net to get a copy of this message | ||
reywob Wed Oct 15 12:25:03 2003 EDT
Modified files:
/pear/Image_Transform Transform.php
Log:
Added an alias to scaleMaxLength
Index: pear/Image_Transform/Transform.php
diff -u pear/Image_Transform/Transform.php:1.19 pear/Image_Transform/Transform.php:1.20
--- pear/Image_Transform/Transform.php:1.19 Sat Aug 30 04:21:43 2003
+++ pear/Image_Transform/Transform.php Wed Oct 15 12:25:03 2003
@@ -17,7 +17,7 @@
// | Vincent Oostindie <vincent@sunlight.tmfweb.nl> |
// +----------------------------------------------------------------------+
//
-// $Id: Transform.php,v 1.19 2003/08/30 08:21:43 reywob Exp $
+// $Id: Transform.php,v 1.20 2003/10/15 16:25:03 reywob Exp $
//
// Image Transformation interface
//
@@ -211,13 +211,13 @@
} // End scaleByFactor
/**
- * Scales an image so that the longest side has this dimension.
+ * Scales an image so that the longest side has the specified dimension.
*
* @access public
* @param int $size Max dimension in pixels
* @return none
*/
- function scaleByLength($size)
+ function scaleMaxLength($size)
{
if ($this->img_x >= $this->img_y) {
$new_x = $size;
@@ -229,7 +229,16 @@
return $this->_resize($new_x, $new_y);
} // End scaleByLength
-
+ /**
+ * Alias for scaleMaxLength
+ *
+ * @access public
+ * @return void
+ */
+ function scaleByLength($size){
+ $this->scaleMaxLength($size);
+ }
+
/**
* Sets the image type (in lowercase letters), the image height and width.
*