note 15717 added to function.imagecopyresized

From: Date: Thu, 27 Sep 2001 17:12:01 +0000
Subject: note 15717 added to function.imagecopyresized
Groups: php.notes 
Request: Send a blank email to php-notes+get-18375@lists.php.net to get a copy of this message
Header("Content-type: image/png"); $width=implode($argv,""); $im1=imagecreatefrompng("timber.png"); $im=imagecreate($width, 12); imagecopyresized ($im, $im1, 0, 0, 0, 0, $width, 12, ImageSX($im1), ImageSY($im1)); ImagePng($im); ImageDestroy($im); works only if the colordepth of the png-file is true color. i have tried it with 256 colors and the picture was just black. -- http://www.php.net/manual/en/function.imagecopyresized.php http://master.php.net/manage/user-notes.php?action=edit+15717 http://master.php.net/manage/user-notes.php?action=delete+15717 http://master.php.net/manage/user-notes.php?action=reject+15717

« previous php.notes (#18375) next »