TCPDF is a PHP library for creating PDF documents. The SetFillColor method is used to set the fill color of the PDF document. The fill color is used in conjunction with the SetDrawColor method to draw shapes, text, and other graphics.
Example 1: Setting the fill color to black
$pdf->SetFillColor(0, 0, 0);
This code sets the fill color to black, which is represented by RGB values of 0, 0, and 0.
Example 2: Setting the fill color to a custom color
$pdf->SetFillColor(255, 127, 0);
This code sets the fill color to a custom color, which is represented by RGB values of 255, 127, and 0. This color would appear as a deep orange color.
Package library: TCPDF
PHP TCPDF::SetFillColor - 30 examples found. These are the top rated real world PHP examples of TCPDF::SetFillColor extracted from open source projects. You can rate examples to help us improve the quality of examples.