[PATCH] imagesavealpha()

From: Date: Thu, 20 Feb 2003 20:17:48 +0000
Subject: [PATCH] imagesavealpha()
Groups: php.dev 
Request: Send a blank email to php-dev+get-94408@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I have reported at http://bugs.php.net/?id=22323 that it's impossible to actually create png images that are partially transparent. I needed that feature yesterday so I have created a patch (attached - mailer mangles patches) for this. This patch introduces another function imagesavealpha($im,$bool) that can be used to enable or disable (default) saving alpha information in imagepng() etc. functions. Without this function, there is currently no way to do that. I'm not 100% sure, if this function is defined in correct ifdefs regarding bundled vs. not, but I guess this should be about right. There's no special testcase, it Works For Me (tm) and is 99% copied from imagealphablending(). It really shouldn't contain any bugs :) When included, this patch closes bug #22323. Of course it needs documentation too, but I'm not the right person to write that with my lousy English. - - Jukka -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE+VTfrYYWM2XTSwX0RAt+3AJoDu5jDoeM3qfVG6FhzPaDtlH6cNwCfYmwz FvpjoNP+Qu/7s6N3bc1Iz/U= =9mR9 -----END PGP SIGNATURE-----

« previous php.dev (#94408) next »