SetDrawColor

SetDrawColor(int r [, int g, int b])

Description

Defines the color used for all drawing operations (lines, rectangles and cell borders). 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.

Parameters

r
If g et b are given, red component; if not, indicates the gray level. Value between 0 and 255.
g
Green component (between 0 and 255).
b
Blue component (between 0 and 255).

See also

SetFillColor, SetTextColor, Line, Rect, Cell, MultiCell
Index
/*! * vue-router v4.5.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */ /*! * pinia v2.3.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */ /*! #__NO_SIDE_EFFECTS__ */ /*! https://mths.be/punycode v1.4.1 by @mathias */ /** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */ /** * @vue/reactivity v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ /** * @vue/runtime-dom v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ /** * @vue/shared v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/