|
|
|
|
Page 1 of 1
|
[ 4 posts ] |
|
How obtain a striped background ?
Author |
Message |
theodamien
|
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?
|
Wed Jan 05, 2011 9:51 am |
|
|
mice32
Experienced pChart user
Joined: Thu Dec 02, 2010 3:03 pm Posts: 36 Location: Somerville, MA, USA
|
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)); // ...
_________________
|
Wed Jan 05, 2011 10:15 am |
|
|
theodamien
|
Re: How obtain a striped background ?
Thanks mice32, but my background is not stripped as I wish:
|
Wed Jan 05, 2011 2:38 pm |
|
|
theodamien
Regular pChart user
Joined: Fri Feb 04, 2011 11:23 am Posts: 15
|
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));
|
Mon Feb 07, 2011 5:03 pm |
|
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 2 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|
|
|