[2] | 1 | <HTML> |
---|
| 2 | <HEAD> |
---|
| 3 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> |
---|
| 4 | <TITLE>SetDrawColor</TITLE> |
---|
| 5 | <LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css"> |
---|
| 6 | </HEAD> |
---|
| 7 | <BODY> |
---|
| 8 | <H2>SetDrawColor</H2> |
---|
| 9 | <TT>SetDrawColor(<B>int</B> r [, <B>int</B> g, <B>int</B> b])</TT> |
---|
| 10 | <H4 CLASS='st'>Version</H4> |
---|
| 11 | 1.3 |
---|
| 12 | <H4 CLASS='st'>Description</H4> |
---|
| 13 | Defines the color used for all drawing operations (lines, rectangles and cell borders). It |
---|
| 14 | can be expressed in RGB components or gray scale. The method can be called before the first |
---|
| 15 | page is created and the value is retained from page to page. |
---|
| 16 | <H4 CLASS='st'>Parameters</H4> |
---|
| 17 | <TT><U>r</U></TT> |
---|
| 18 | <BLOCKQUOTE> |
---|
| 19 | If <TT>g</TT> et <TT>b</TT> are given, red component; if not, indicates the gray level. |
---|
| 20 | Value between 0 and 255. |
---|
| 21 | </BLOCKQUOTE> |
---|
| 22 | <TT><U>g</U></TT> |
---|
| 23 | <BLOCKQUOTE> |
---|
| 24 | Green component (between 0 and 255). |
---|
| 25 | </BLOCKQUOTE> |
---|
| 26 | <TT><U>b</U></TT> |
---|
| 27 | <BLOCKQUOTE> |
---|
| 28 | Blue component (between 0 and 255). |
---|
| 29 | </BLOCKQUOTE> |
---|
| 30 | <H4 CLASS='st'>See also</H4> |
---|
| 31 | <A HREF="setfillcolor.htm">SetFillColor()</A>, |
---|
| 32 | <A HREF="settextcolor.htm">SetTextColor()</A>, |
---|
| 33 | <A HREF="line.htm">Line()</A>, |
---|
| 34 | <A HREF="rect.htm">Rect()</A>, |
---|
| 35 | <A HREF="cell.htm">Cell()</A>, |
---|
| 36 | <A HREF="multicell.htm">MultiCell()</A>. |
---|
| 37 | <H6></H6> |
---|
| 38 | <HR> |
---|
| 39 | <DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV> |
---|
| 40 | </BODY> |
---|
| 41 | </HTML> |
---|