@@ 394-403 (lines=10) @@ | ||
391 | return $this->page; |
|
392 | } |
|
393 | ||
394 | function SetDrawColor($r,$g=-1,$b=-1) |
|
395 | { |
|
396 | //Set color for all stroking operations |
|
397 | if(($r==0 && $g==0 && $b==0) || $g==-1) |
|
398 | $this->DrawColor=sprintf('%.3f G',$r/255); |
|
399 | else |
|
400 | $this->DrawColor=sprintf('%.3f %.3f %.3f RG',$r/255,$g/255,$b/255); |
|
401 | if($this->page>0) |
|
402 | $this->_out($this->DrawColor); |
|
403 | } |
|
404 | ||
405 | function SetFillColor($r,$g=-1,$b=-1) |
|
406 | { |
|
@@ 417-425 (lines=9) @@ | ||
414 | $this->_out($this->FillColor); |
|
415 | } |
|
416 | ||
417 | function SetTextColor($r,$g=-1,$b=-1) |
|
418 | { |
|
419 | //Set color for text |
|
420 | if(($r==0 && $g==0 && $b==0) || $g==-1) |
|
421 | $this->TextColor=sprintf('%.3f g',$r/255); |
|
422 | else |
|
423 | $this->TextColor=sprintf('%.3f %.3f %.3f rg',$r/255,$g/255,$b/255); |
|
424 | $this->ColorFlag=($this->FillColor!=$this->TextColor); |
|
425 | } |
|
426 | ||
427 | function GetStringWidth($s) |
|
428 | { |