Ejemplo n.º 1
0
 /**
  * Resize the image by preserving aspect ratio, keeping the image inside the
  * $width and $height
  * 
  * @param Image_Backend $backend
  * @param integer $width The width to size within
  * @param integer $height The height to size within
  * @return Image_Backend
  */
 public function generateSetRatioSize(Image_Backend $backend, $width, $height)
 {
     return $backend->resizeRatio($width, $height);
 }
Ejemplo n.º 2
0
 /**
  * Resize the image by preserving aspect ratio, keeping the image inside the
  * $width and $height
  *
  * @param Image_Backend $backend
  * @param integer $width The width to size within
  * @param integer $height The height to size within
  * @return Image_Backend
  * @deprecated 4.0 Use generateFit instead
  */
 public function generateSetRatioSize(Image_Backend $backend, $width, $height)
 {
     Deprecation::notice('4.0', 'Use generateFit instead');
     return $backend->resizeRatio($width, $height);
 }
Ejemplo n.º 3
0
 /**
  * Resize the image by preserving aspect ratio, keeping the image inside the
  * $width and $height
  *
  * @param Image_Backend $backend
  * @param integer $width The width to size within
  * @param integer $height The height to size within
  * @return Image_Backend
  * @deprecated 4.0 Generate methods are no longer applicable
  */
 public function generateSetRatioSize(Image_Backend $backend, $width, $height)
 {
     Deprecation::notice('4.0', 'Generate methods are no longer applicable');
     return $backend->resizeRatio($width, $height);
 }