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


Top ↑

Return Return

((string)) The PDF command or empty string.


Top ↑

Source Source

File: includes/lib/tcpdf/tcpdf.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.1.000 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.