cvs: pear /Image_Transform Image_Transform.php

From: Date: Fri, 31 May 2002 18:06:52 +0000
Subject: cvs: pear /Image_Transform Image_Transform.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4323@lists.php.net to get a copy of this message
reywob Fri May 31 14:06:52 2002 EDT Modified files: /pear/Image_Transform Image_Transform.php Log: Updated to reflect new location of drivers Index: pear/Image_Transform/Image_Transform.php diff -u pear/Image_Transform/Image_Transform.php:1.2 pear/Image_Transform/Image_Transform.php:1.3 --- pear/Image_Transform/Image_Transform.php:1.2 Mon May 20 12:28:47 2002 +++ pear/Image_Transform/Image_Transform.php Fri May 31 14:06:52 2002 @@ -17,14 +17,14 @@ // | Vincent Oostindie <vincent@sunlight.tmfweb.nl> | // +----------------------------------------------------------------------+ // -// $Id: Image_Transform.php,v 1.2 2002/05/20 16:28:47 reywob Exp $ +// $Id: Image_Transform.php,v 1.3 2002/05/31 18:06:52 reywob Exp $ // // Image Transformation interface // # TODO # Make scaleMaxX and scaleMaxY accept all the various dimensions (factor % etc) -require_once "PEAR.php"; +require_once 'PEAR.php'; /* if(!defined(IMAGE_TRANSFORM_LIB_PATH)){ @@ -109,15 +109,14 @@ * @see PEAR::isError() * @see Image_Resize::setOption() */ - function setup($image_lib) + function &factory($driver) { - include_once "Image_Transform/Image_Transform_$image_lib.php" ; - - $classname = "Image_Transform_${image_lib}"; + include_once "Transform/$driver.php" ; + + $classname = "Image_Transform_{$driver}"; $obj =& new $classname; return $obj; - - } // End setup + } /** @@ -261,6 +260,46 @@ } /** + * Set the image width + * @param int $size dimension to set + * @since 29/05/02 13:36:31 + * @return + */ + function _set_img_x($size){ + $this->img_x = $size; + } + + /** + * Set the image height + * @param int $size dimension to set + * @since 29/05/02 13:36:31 + * @return + */ + function _set_img_y($size){ + $this->img_y = $size; + } + + /** + * Set the image width + * @param int $size dimension to set + * @since 29/05/02 13:36:31 + * @return + */ + function _set_new_x($size){ + $this->new_x = $size; + } + + /** + * Set the image height + * @param int $size dimension to set + * @since 29/05/02 13:36:31 + * @return + */ + function _set_new_y($size){ + $this->new_y = $size; + } + + /** * Place holder for the real resize method * used by extended methods to do the resizing * @@ -309,7 +348,7 @@ /* Methods to add to the driver classes in the future */ function addText() { - + /* Should be nearly implemented now!) */ } function addDropShadow()

« previous php.pear.cvs (#4323) next »