note 53053 rejected from function.imagefilltoborder by nlopess

From: Date: Sat, 24 Nov 2007 11:33:02 +0000
Subject: note 53053 rejected from function.imagefilltoborder by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-132537@lists.php.net to get a copy of this message
Note Submitter: pritm (.a.t.) mail (.d.0.t.) ru ---- Has found a problem from which I can not consult. Please help. For example a code such: $im = imagecreatefromjpeg ('map-back.jpg'); $marker = ImageColorAllocate ($im, 0, 0, 160); // Colors [black] and [col] are identical. // Of what it is possible to be convinced having changed these values $black = ImageColorAllocate ($im, 0, 0, 0); $col = ImageColorAt ($im, 49, 297); // The rectangular is well led round during processing ImageRectangle ($im, 20, 20, 50, 50, $col); // For check of taken color (should be black) imageLine ($im, 25,25,45,45, $col); //Fill ImageFillToBorder ($im, 160,300, $col, $marker); // A conclusion imagejpeg ($im, '', 100); ImageDestroy ($im); In result all is filled in jpg (except for a rectangular and parts of border) though the point fill undertook inside a figure with black border. And the normal result should be only a filled figure. Look as: Primary picture http://nugna.info/map-back.jpg As a result of performance of a script: http://nugna.info/is-now.jpg It is necessary to receive: http://nugna.info/need.jpg How it to achieve?

« previous php.notes (#132537) next »