note 102438 deleted from function.imagepng by danbrown
| From: | danbrown@php.net | Date: | Mon, 14 Feb 2011 14:42:55 +0000 |
| Subject: | note 102438 deleted from function.imagepng by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-176988@lists.php.net to get a copy of this message | ||
Note Submitter: spark at limao dot com dot br
----
@neburk0rk at gmail dot com
thank you for that, now I have my
[php]
private function setResource($res){
$conteudo = "";
ob_start();
switch($this->extensao){
case "jpg":
imagejpeg($res);
break;
case "png":
imagepng($res);
break;
case "gif":
imagegif($res);
break;
case "bmp":
imagewbmp($res);
break;
}
$conteudo = ob_get_contents();
ob_end_clean();
$this->conteudo = $conteudo;
}
[/php]
working in place ;)