note 102438 deleted from function.imagepng by danbrown
[email protected] Mon, 14 Feb 2011 06:42:55 -0800
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
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 ;)