Hello group, It's been over a year since I've had to come to you for help, but your insights and experience are too hard to resist... :-)
I don't have a problem with any of the gd functions and they all works fine except that when I try to fill a circle or draw onto an imported image from imagecreatefromjpeg: When I create my working jpg image from scratch: $im = ImageCreate($sizew, $sizeh); $black = ImageColorAllocate($im, 0, 0, 0); ... The image has many different colored stripes which are drawn here 200+ lines ... ImageArc($im, $arrwell, $arrwell, 10, 10, 0, 360, $black); ImageFillToBorder($im, $arrwell, $arrwell, $black, $black); ... everything works perfectly. NOW... I decided to cut out the 200+ lines of stripe drawing code and import the fixed stripped image using imagecreatefromjpeg to draw and fill the circle and arrow onto: ... $im = imagecreatefromjpeg("stripes.jpg"); $black = ImageColorAllocate($im, 0, 0, 0); ImageArc($im, $arrwell, $arrwell, 10, 10, 0, 360, $black); ImageFillToBorder($im, $arrwell, $arrwell, $black, $black); ... The problem is that now the Arc and arrow lines comes out in a reddish color and the fill to border doesn't fill (regardless of the color used in ImageArc). Anything I attempt to draw in any color comes out in red (it doesn't matter what the stripe color behind it is, it's still the same red). See the two small attached images (a small portion of the larger image). The blackdot.jpg is what it is supposed to look like. The reddot.jpg is what it looks like when drawn on the imported image. I guess I could go back to drawing it from scratch but it's over 200 lines of code to draw the stripes in an already 800 line program. Do you know why the reddish color over rides the allocated colors and what I can do to get the $black to draw on the imported image? Thanks for any ideas, I'm not on the list, so please respond directly if you can. Thanks again, Don
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php