note 60722 added to function.imagecopy

From: Date: Sun, 15 Jan 2006 04:21:13 +0000
Subject: note 60722 added to function.imagecopy
Groups: php.notes 
Request: Send a blank email to php-notes+get-101778@lists.php.net to get a copy of this message
The source's palette is added to the destination's palette when merged, and when the destination already has 256 colors on it, the source image is altered to use those colors. Truecolor images always take up 256 colors when merged with palette images, so if you're planning to add any additional images after doing so, you can use imagetruecolortopalette() on the truecolor image before merging it to reduce how much palette space it takes, and avoid losing colors in future merges to the same destination. Example - imagetruecolortopalette($truecolorimg, FALSE, 128); ---- Manual Page -- http://www.php.net/manual/en/function.imagecopy.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+60722 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60722&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60722&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60722&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60722&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60722&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60722&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60722&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+60722&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#101778) next »