ImageService::Resize (since version 2.0)
Syntax
boolean Resize ( integer $width , integer $height )
Parameters
width
The width to strech the image to.
height
The height to strech the image to.
Description
Resizes the current image ressource to the given width and height.
Return
boolean Returns true on sucess, false on fail.
Examples
<?php
// load the image ressource
ImageService::Load('head.png');
// resize the image to a width of 100 and a height of 200
ImageService::Resize(100, 200);
// save the current manipulated image ressource
ImageService::Save('head.png');
?>
// load the image ressource
ImageService::Load('head.png');
// resize the image to a width of 100 and a height of 200
ImageService::Resize(100, 200);
// save the current manipulated image ressource
ImageService::Save('head.png');
?>
Last change 10/13/2009