note 46341 added to function.imagecreatetruecolor

From: Date: Thu, 07 Oct 2004 16:20:58 +0000
Subject: note 46341 added to function.imagecreatetruecolor
Groups: php.notes 
Request: Send a blank email to php-notes+get-78142@lists.php.net to get a copy of this message
using imagecolorallocate to specify the image's background color does not work with truecolor-image. instead you have to use imagefill to force flood-filling the image with the backgorund-color previously allocated: $bgColor = imagecolorallocate($img, 255,255,255); imagefill($img , 0,0 , $bgColor); kai ---- Manual Page -- http://www.php.net/manual/en/function.imagecreatetruecolor.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46341 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46341&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+46341&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#78142) next »