Copybara bot | be50d49 | 2023-11-30 00:16:42 +0100 | [diff] [blame^] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
| 2 | <html>
|
| 3 | <head>
|
| 4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
| 5 | <title>Rect</title>
|
| 6 | <link type="text/css" rel="stylesheet" href="../fpdf.css">
|
| 7 | </head>
|
| 8 | <body>
|
| 9 | <h1>Rect</h1>
|
| 10 | <code>Rect(<b>float</b> x, <b>float</b> y, <b>float</b> w, <b>float</b> h [, <b>string</b> style])</code>
|
| 11 | <h2>Description</h2>
|
| 12 | Outputs a rectangle. It can be drawn (border only), filled (with no border) or both.
|
| 13 | <h2>Parameters</h2>
|
| 14 | <dl class="param">
|
| 15 | <dt><code>x</code></dt>
|
| 16 | <dd>
|
| 17 | Abscissa of upper-left corner.
|
| 18 | </dd>
|
| 19 | <dt><code>y</code></dt>
|
| 20 | <dd>
|
| 21 | Ordinate of upper-left corner.
|
| 22 | </dd>
|
| 23 | <dt><code>w</code></dt>
|
| 24 | <dd>
|
| 25 | Width.
|
| 26 | </dd>
|
| 27 | <dt><code>h</code></dt>
|
| 28 | <dd>
|
| 29 | Height.
|
| 30 | </dd>
|
| 31 | <dt><code>style</code></dt>
|
| 32 | <dd>
|
| 33 | Style of rendering. Possible values are:
|
| 34 | <ul>
|
| 35 | <li><code>D</code> or empty string: draw. This is the default value.</li>
|
| 36 | <li><code>F</code>: fill</li>
|
| 37 | <li><code>DF</code> or <code>FD</code>: draw and fill</li>
|
| 38 | </ul>
|
| 39 | </dd>
|
| 40 | </dl>
|
| 41 | <h2>See also</h2>
|
| 42 | <a href="setlinewidth.htm">SetLineWidth</a>,
|
| 43 | <a href="setdrawcolor.htm">SetDrawColor</a>,
|
| 44 | <a href="setfillcolor.htm">SetFillColor</a>
|
| 45 | <hr style="margin-top:1.5em">
|
| 46 | <div style="text-align:center"><a href="index.htm">Index</a></div>
|
| 47 | </body>
|
| 48 | </html>
|