View unanswered posts | View active topics It is currently Thu Mar 28, 2024 6:59 pm



Reply to topic  [ 4 posts ] 
How obtain a striped background ? 
Author Message
Post 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?

Image


Wed Jan 05, 2011 9:51 am
Experienced pChart user
Experienced pChart user

Joined: Thu Dec 02, 2010 3:03 pm
Posts: 36
Location: Somerville, MA, USA
Post 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));
   // ...

_________________
Image


Wed Jan 05, 2011 10:15 am
Profile WWW
Post Re: How obtain a striped background ?
Thanks mice32, but my background is not stripped as I wish:

Image


Wed Jan 05, 2011 2:38 pm
Regular pChart user
Regular pChart user

Joined: Fri Feb 04, 2011 11:23 am
Posts: 15
Post 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
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 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

Search for:
Jump to:  
cron