I asked earlier about filling an image with a pattern.
I have figured out how to do it (or at least how I ought to do it using
imagesettile() and a filled shape or an imagefill.
But it doesn't work.
$tile2 = @imagecreatefrompng ("fill1.png");
imagepng ($tile2);
displays the fill I want to use.
$im = @imagecreate (300, 200);
$background_color = imagecolorallocate ($im, 255, 255, 255);
$fill_color = imagecolorallocate ($im, 100, 255, 0);
imagefilledrectangle ( $im, 50, 50, 250, 160,$fill_color);
imagepng ($im);
shows a green rectangle
$tile2 = @imagecreatefrompng ("fill1.png");
imagepng ($tile2);
$im = @imagecreate (300, 200);
$background_color = imagecolorallocate ($im, 255, 255, 255);
imagesettile ($im,$tile2);
imagefilledrectangle ( $im, 50, 50, 250, 160,IMG_COLOR_TILED);
imagepng ($im);
Does not show a filled rectangle.
I have PHP 4.2.1 running on Windows NT4 with Apache2
phpinfo reports:
GD Support enabled
GD Version 2.0 or later
Olwen Williams
[EMAIL PROTECTED]
____________________________________________________________________
CAUTION - This message may contain privileged and confidential
information intended only for the use of the addressee named above.
If you are not the intended recipient of this message you are hereby
notified that any use, dissemination, distribution or reproduction
of this message is prohibited. If you have received this message in
error please notify Safe Air Ltd immediately. Any views expressed
in this message are those of the individual sender and may not
necessarily reflect the views of Safe Air.
_____________________________________________________________________
For more information on the Safe Air Group, visit us online
at http://www.safeair.co.nz/
_____________________________________________________________________
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php