| // +---------------------------------------------------------------------------+ /** * Strategy for drawing borders. * * @package SGL * @author Dmitri Lakachauskis */ class SGL_ImageTransform_BorderStrategy extends SGL_ImageTransformStrategy { /** * Add border to image. * * @access public * * @return boolean */ function transform() { foreach ($this->aParams as $color) { $result = $this->driver->addBorder(1, $color); if (PEAR::isError($result)) { return $result; } } return true; } } ?>