pChart 2.x forum http://wiki.pchart.net/forum/ |
|
How obtain a striped background ? http://wiki.pchart.net/forum/viewtopic.php?f=3&t=47 |
Page 1 of 1 |
Author: | theodamien [ Wed Jan 05, 2011 9:51 am ] |
Post subject: | How obtain a striped background ? |
Hi, I would like to reproduce the same striped background as in the example picture. Do you think this is possible? |
Author: | mice32 [ Wed Jan 05, 2011 10:15 am ] |
Post subject: | Re: How obtain a striped background ? |
Quote: Do you think this is possible? Of course! Code: // ... $image = new pImage(847, 304, $data); $image->setGraphArea(58, 27, 816, 228); // ... $image->drawFilledRectangle(58, 27, 816, 228, Array('R' => 0, 'G' => 20, 'B' => 20, 'Dash' => true, 'DashR' => 0, 'DashG' => 51, 'DashB' => 51, 'BorderR' => 0, 'BorderG' => 0, 'BorderB' => 0)); // ... |
Author: | theodamien [ Wed Jan 05, 2011 2:38 pm ] |
Post subject: | Re: How obtain a striped background ? |
Thanks mice32, but my background is not stripped as I wish: |
Author: | theodamien [ Mon Feb 07, 2011 5:03 pm ] |
Post subject: | Re: How obtain a striped background ? |
Oky I found in the example, we need to use function DrawFilledRectangle with Dash parameter : $myPicture->drawFilledRectangle(50,30,$X,$Y - 65,array("R"=>255,"G"=>255,"B"=>255,"Alpha"=>20,"Dash"=>TRUE,"DashR"=>0,"DashG"=>0,"DashB"=>0,"BorderR"=>255,"BorderG"=>255,"BorderB"=>255)); |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |