TCPDF::setColor( $type,  $col1,  $col2 = -1,  $col3 = -1,  $col4 = -1,  $ret = false,  $name = '' )

Defines the color used by the specified type (‘draw’, ‘fill’, ‘text’).


Description Description


Parameters Parameters

$type

(Required) (string) Type of object affected by this color: ('draw', 'fill', 'text').

$col1

(Required) (float) GRAY level for single color, or Red color for RGB (0-255), or CYAN color for CMYK (0-100).

$col2

(Optional) (float) GREEN color for RGB (0-255), or MAGENTA color for CMYK (0-100).

Default value: -1

$col3

(Optional) (float) BLUE color for RGB (0-255), or YELLOW color for CMYK (0-100).

Default value: -1

$col4

(Optional) (float) KEY (BLACK) color for CMYK (0-100).

Default value: -1

$ret

(Optional) (boolean) If true do not send the command.

Default value: false

$name

(Optional) (string) spot color name (if any)

Default value: ''


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
5.9.125 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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