SetDrawColor(int r [, int g, int b])
Defines the color used for all drawing operations (lines, rectangles and cell borders). It can be expressed in RGB components or grayscale. The method can be called before creating the first page and the value is maintained from page to page.
r
: If g
and b
are provided, red component; otherwise indicates grayscale level. Value between 0 and 255.g
: Green component (between 0 and 255).b
: Blue component (between 0 and 255).