TCPDF::SetFillColor( $col1, $col2 = -1, $col3 = -1, $col4 = -1, $ret = false, $name = '' )
Defines the color used for all filling operations (filled rectangles and cell backgrounds). It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
Description Description
See also See also
- SetFillColorArray(),: SetDrawColor(), SetTextColor(), Rect(), Cell(), MultiCell()
Parameters Parameters
- $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: ''
Return Return
((string)) The PDF command.
Source Source
File: includes/lib/tcpdf/tcpdf.php
Changelog Changelog
Version | Description |
---|---|
1.3 | Introduced. |