function setResizeMethod($method)
    {
        switch ($method)
        {
            case 1:
            case 'resize':
                $this->_resize_function = 'imagecopyresized';
                break;
            case 2:
            case 'resample':
                if (!function_exists('imagecopyresampled'))
                {
                    // no error message. just return false.
                    return null;
                }
                $this->_resize_function = 'imagecopyresampled';
                break;
            case 3:
            case 'resample_workaround':
            case 'workaround':
            case 'bicubic':
                $this->_resize_function = '$this->_imageCopyResampledWorkaround';
                break;
            case 4:
            case 'resample_workaround2':
            case 'workaround2':
            case 'bicubic2':
                $this->_resize_function = '$this->_imageCopyResampledWorkaround2';
                break;
            default:
                return null;
        }
        return true;
    }
function setResizeMethod($method)
    {
        switch ($method)
        {
            case 1:
            case 'resize':
                $this->_resize_function = 'imagecopyresized';
                break;
            case 2:
            case 'resample':
                if (!function_exists('imagecopyresampled'))
                {
                    // no error message. just return false.
                    return null;
                }
                $this->_resize_function = 'imagecopyresampled';
                break;
            case 3:
            case 'resample_workaround':
            case 'workaround':
            case 'bicubic':
                $this->_resize_function = '$this->_imageCopyResampledWorkaround';
                break;
            case 4:
            case 'resample_workaround2':
            case 'workaround2':
            case 'bicubic2':
                $this->_resize_function = '$this->_imageCopyResampledWorkaround2';
                break;
            default:
                return null;
        }
        return true;
    }
function setResizeMethod ( $ method ) { switch ( $ method ) { case 1 : case 'resize' : $ this -> _resize_function = 'imagecopyresized' ; break ; case 2 : case 'resample' : if ( ! function_exists ( 'imagecopyresampled' ) ) { // no error message. just return false. return null ; } $ this -> _resize_function = 'imagecopyresampled' ; break ; case 3 : case 'resample_workaround' : case 'workaround' : case 'bicubic' : $ this -> _resize_function = '$this->_imageCopyResampledWorkaround' ; break ; case 4 : case 'resample_workaround2' : case 'workaround2' : case 'bicubic2' : $ this -> _resize_function = '$this->_imageCopyResampledWorkaround2' ; break ; default : return null ; } return true ; }
Sets the resize method of choice

$method can be one of the following:<br>
<ul>
<li>'resize' -> supported by every version of GD (fast but ugly resize of image)</li>
<li>'resample' -> only supported by GD version >= 2.0 (slower but antialiased resize of image)</li>
<li>'workaround' -> supported by every version of GD (workaround function for bicubic resizing, downsizing, VERY slow!, taken from php.net comments)</li>
<li>'workaround2' -> supported by every version of GD (alternative workaround function for bicubic resizing, down- and upsizing, VERY VERY slow!, taken from php.net comments)</li>
</ul>

@param string|integer $method resize method
@return bool true on success, otherwise false
Sets the resize method of choice