note 20430 added to function.imagecolortransparent

From: Date: Wed, 03 Apr 2002 17:22:33 +0000
Subject: note 20430 added to function.imagecolortransparent
Groups: php.notes 
Request: Send a blank email to php-notes+get-28547@lists.php.net to get a copy of this message
ImageColorTransparent() does not work on true color images. If it did, it would be very handy for applying masks. A workaround is to use imagetruecolortopalette then use ImageColorTransparent on your mask. Unfortunately imagetruecolortopalette is really bad at picking colours, so you have to fix them with a combination of imagecolorclosest and imagecolorset. If anyone knows a better way let me know! -- http://www.php.net/manual/en/function.imagecolortransparent.php http://master.php.net/manage/user-notes.php?action=edit+20430 http://master.php.net/manage/user-notes.php?action=delete+20430 http://master.php.net/manage/user-notes.php?action=reject+20430

« previous php.notes (#28547) next »