ttmt Posted November 8, 2011 Share Posted November 8, 2011 Hi all I have this simple gd code to produce a filled rectangle with a solid color. <?php header('Content-Type: image/png'); $im = imagecreatetruecolor(1000, 200); $gray = imagecolorallocate($im, 240, 240, 240); imagefilledrectangle($im, 0, 0, 1000, 199, $gray); imagepng($im); imagedestroy($im); ?> Is it possible to create a rectangle with a pattern such as a lined background. Link to comment https://forums.phpfreaks.com/topic/250736-imagefilledrectangle-texture-pattern/ Share on other sites More sharing options...
xyph Posted November 8, 2011 Share Posted November 8, 2011 Yes, it is possible. Link to comment https://forums.phpfreaks.com/topic/250736-imagefilledrectangle-texture-pattern/#findComment-1286407 Share on other sites More sharing options...
ttmt Posted November 25, 2011 Author Share Posted November 25, 2011 So how would I do this ? Link to comment https://forums.phpfreaks.com/topic/250736-imagefilledrectangle-texture-pattern/#findComment-1291170 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.