Home > PHP > Function > PDF > PDF_setcolor()

PDF_setcolor()

PDF_setcolor - Set fill and stroke color

Syntax

bool PDF_setcolor (resource $p, string $fstype, string $colorspace, float $c1, float $c2, float $c3, float $c4)

Arguments

  • p - The status parameter is the status parameter supplied to a successful call to pcntl_waitpid().
  • fstype - The status parameter is the status parameter supplied to a successful call to pcntl_waitpid().
  • colorspace - The status parameter is the status parameter supplied to a successful call to pcntl_waitpid().
  • c1 - The status parameter is the status parameter supplied to a successful call to pcntl_waitpid().
  • c2 - The status parameter is the status parameter supplied to a successful call to pcntl_waitpid().
  • c3 - The status parameter is the status parameter supplied to a successful call to pcntl_waitpid().
  • c4 - The status parameter is the status parameter supplied to a successful call to pcntl_waitpid().

Description

Sets the current color space and color. Returns TRUE on success or FALSE on failure.

Version

PHP 4.0.5, PECL pdflib >= 1.0.0

Return value