Hi,
I'm trying to write a class that deals with images, but I have a huge prob with my resize function.
class image
{
....
function resize($dest_width, $dest_height)
{
$temp=imagecreate($dest_width, $dest_height);
imagecopyresized($temp, $this->name, 0, 0, 0, 0,$dest_width, $dest_height, $this->width, $this->height);
return $temp;
}
}
There is always an error in the imagecopyresized-function. And how can I accass the image I've created?
With:
echo "<img src=".$myimage->resize(50,50).">";
Thanx a lot!