TCPDF::setColorArray( $type, $color, $ret = false )
Set the color array for the specified type (‘draw’, ‘fill’, ‘text’).
Description Description
It can be expressed in RGB, CMYK or GRAY SCALE components. The method can be called before the first page is created and the value is retained from page to page.
Parameters Parameters
- $type
-
(Required) (string) Type of object affected by this color: ('draw', 'fill', 'text').
- $color
-
(Required) (array) Array of colors (1=gray, 3=RGB, 4=CMYK or 5=spotcolor=CMYK+name values).
- $ret
-
(Optional) (boolean) If true do not send the PDF command.
Default value: false
Return Return
((string)) The PDF command or empty string.
Source Source
File: includes/lib/tcpdf/tcpdf.php
Changelog Changelog
Version | Description |
---|---|
3.1.000 | Introduced. |