note 19385 added to function.imagecreatetruecolor
| From: | pmas7354 at artax dot karlin dot mff dot cuni dot cz | Date: | Tue, 26 Feb 2002 10:40:25 +0000 |
| Subject: | note 19385 added to function.imagecreatetruecolor | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-27050@lists.php.net to get a copy of this message | ||
Here is answer for first question 'why do I need true color images'.
True color images you need when you want to work with images such as photos (snapshots), video
frames and so on.
When you need to combine some these images for user, or to send him only small part of your image,
and you try to use 256 colors, image will be ugly (try it if you want). Some colors will change
dramatically.
"Antialias" lines which you may see are probably the result of using JPEG compression.
JPEG is not looseless compression so "small image details may be changed" in order to
reduce image size dramatically. On really true-color images such as your snapshots of landscape and
so on and using small compression level you will hardly see differences. But on exact objects, such
as lines, circles, which you draw on solid background using single color, you can see that if you
save and load this image that some details are changed.
--
http://www.php.net/manual/en/function.imagecreatetruecolor.php
http://master.php.net/manage/user-notes.php?action=edit+19385
http://master.php.net/manage/user-notes.php?action=delete+19385
http://master.php.net/manage/user-notes.php?action=reject+19385