Menu
imagefilledrectagle – pattered background ?
Hi All
Is it possible to have a pattern as the background of image created with imagefilledrectangle.
This creates a solid tray block but I want a block with a simple pattered fill.
[code]
<?php
header(‘Content-Type: image/png’);
$im = imagecreatetruecolor(1020, 215);
$gray = imagecolorallocate($im, 220, 220, 220);
imagefilledrectangle($im, 0, 0, 1020, 214, $gray);
imagepng($im);
imagedestroy($im);
?>