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. Quote 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. Quote 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 ? Quote Link to comment https://forums.phpfreaks.com/topic/250736-imagefilledrectangle-texture-pattern/#findComment-1291170 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.