|
@@ 1452-1457 (lines=6) @@
|
| 1449 |
|
*/ |
| 1450 |
|
function SetDrawColor($r, $g=-1, $b=-1) { |
| 1451 |
|
//Set color for all stroking operations |
| 1452 |
|
if(($r==0 and $g==0 and $b==0) or $g==-1) { |
| 1453 |
|
$this->DrawColor=sprintf('%.3f G',$r/255); |
| 1454 |
|
} |
| 1455 |
|
else { |
| 1456 |
|
$this->DrawColor=sprintf('%.3f %.3f %.3f RG',$r/255,$g/255,$b/255); |
| 1457 |
|
} |
| 1458 |
|
if($this->page>0) { |
| 1459 |
|
$this->_out($this->DrawColor); |
| 1460 |
|
} |
|
@@ 1474-1479 (lines=6) @@
|
| 1471 |
|
*/ |
| 1472 |
|
function SetFillColor($r, $g=-1, $b=-1, $storeprev=false) { |
| 1473 |
|
//Set color for all filling operations |
| 1474 |
|
if(($r==0 and $g==0 and $b==0) or $g==-1) { |
| 1475 |
|
$this->FillColor=sprintf('%.3f g',$r/255); |
| 1476 |
|
} |
| 1477 |
|
else { |
| 1478 |
|
$this->FillColor=sprintf('%.3f %.3f %.3f rg',$r/255,$g/255,$b/255); |
| 1479 |
|
} |
| 1480 |
|
$this->ColorFlag=($this->FillColor!=$this->TextColor); |
| 1481 |
|
if($this->page>0) { |
| 1482 |
|
$this->_out($this->FillColor); |
|
@@ 1501-1506 (lines=6) @@
|
| 1498 |
|
*/ |
| 1499 |
|
function SetTextColor($r, $g=-1, $b=-1, $storeprev=false) { |
| 1500 |
|
//Set color for text |
| 1501 |
|
if(($r==0 and $g==0 and $b==0) or $g==-1) { |
| 1502 |
|
$this->TextColor=sprintf('%.3f g',$r/255); |
| 1503 |
|
} |
| 1504 |
|
else { |
| 1505 |
|
$this->TextColor=sprintf('%.3f %.3f %.3f rg',$r/255,$g/255,$b/255); |
| 1506 |
|
} |
| 1507 |
|
$this->ColorFlag=($this->FillColor!=$this->TextColor); |
| 1508 |
|
if ($storeprev) { |
| 1509 |
|
// store color as previous value |