I am really stuck with this setBrush feature of the GD library. I'd really like to use an already made jpg/png as the brush when images are drawn in GD, is this possible?
Here is something i have, I know that in the last section of imageline i have to change
so: imageline($im,10,10,30,40,$black); --> becomes --> imageline($im,10,10,30,40,gdsomething); but not sure how to code it.
Header ("Content-Type: image/png");
$im = imagecreate(50,50);