Re: imagecreate() question

From: Date: Mon, 02 Apr 2007 15:27:03 +0000
Subject: Re: imagecreate() question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-251932@lists.php.net to get a copy of this message
tedd wrote:
In the php manual it says: imagecreate() returns an image identifier representing a blank image of specified size. We recommend the use of imagecreatetruecolor(). Q: Why the recommendation?
Because the need to create 256 colour (or less) images grows less year by year. If you need to work with a jpeg/png then imagecreatetruecolor() is required. As this is what most people need, hence the manual comment exists.
imagecreate() returns a "blank" page whereas imagecreatetruecolor() returns a "black" page.
Sure, but both are easily changed. Cheers, Rich -- Zend Certified Engineer http://www.corephp.co.uk "Never trust a computer you can't throw out of a window"

« previous php.general (#251932) next »