cvs: pear /Image_Text/Image Text.php

From: Date: Tue, 24 Apr 2007 03:38:17 +0000
Subject: cvs: pear /Image_Text/Image Text.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-46124@lists.php.net to get a copy of this message
ssttoo Tue Apr 24 03:38:17 2007 UTC Modified files: /pear/Image_Text/Image Text.php Log: - Fixing bug #10775 - minor correction in save() API docs http://cvs.php.net/viewvc.cgi/pear/Image_Text/Image/Text.php?r1=1.32&r2=1.33&diff_format=u Index: pear/Image_Text/Image/Text.php diff -u pear/Image_Text/Image/Text.php:1.32 pear/Image_Text/Image/Text.php:1.33 --- pear/Image_Text/Image/Text.php:1.32 Mon Apr 16 09:52:34 2007 +++ pear/Image_Text/Image/Text.php Tue Apr 24 03:38:16 2007 @@ -72,7 +72,7 @@ * @author Tobias Schlitt <toby@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Text.php,v 1.32 2007/04/16 09:52:34 cweiske Exp $ + * @version CVS: $Id: Text.php,v 1.33 2007/04/24 03:38:16 ssttoo Exp $ * @link http://pear.php.net/package/Net_FTP2 * @since File available since Release 0.0.1 */ @@ -536,6 +536,11 @@ $this->colors[$id] = $aaFactor * imagecolorallocate($this->_img, $color['r'],$color['g'],$color['b']); } + if ($this->colors[$id] == 0 && $aaFactor == -1) { + // correction for black with antialiasing OFF + // since color cannot be negative zero + $this->colors[$id] = -256; + } } return true; } @@ -1101,7 +1106,7 @@ * Save image canvas. * * Saves the image to a given destination. You can leave out the destination file path, - * if you have the option for that set correctly. Saving is possible with the save() + * if you have the option for that set correctly. Saving is possible with the display() * method, too. * * @param string $destFile The destination to save to (optional, uses options value else).

« previous php.pear.cvs (#46124) next »