rect.htm 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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=ISO-8859-1">
  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. Dessine un rectangle à partir de son coin supérieur gauche. Il peut être tracé, rempli ou les
  13. deux à la fois.
  14. <h2>Paramètres</h2>
  15. <dl class="param">
  16. <dt><code>x</code></dt>
  17. <dd>
  18. Abscisse du coin supérieur gauche.
  19. </dd>
  20. <dt><code>y</code></dt>
  21. <dd>
  22. Ordonnée du coin supérieur gauche.
  23. </dd>
  24. <dt><code>w</code></dt>
  25. <dd>
  26. Largeur.
  27. </dd>
  28. <dt><code>h</code></dt>
  29. <dd>
  30. Hauteur.
  31. </dd>
  32. <dt><code>style</code></dt>
  33. <dd>
  34. Manière de tracer le rectangle. Les valeurs possibles sont :
  35. <ul>
  36. <li><code>D</code> ou chaîne vide : contour (draw). C'est la valeur par défaut.
  37. <li><code>F</code> : remplissage (fill)
  38. <li><code>DF</code> ou <code>FD</code> : contour et remplissage
  39. </ul>
  40. </dd>
  41. </dl>
  42. <h2>Voir</h2>
  43. <a href="setlinewidth.htm">SetLineWidth()</a>,
  44. <a href="setdrawcolor.htm">SetDrawColor()</a>,
  45. <a href="setfillcolor.htm">SetFillColor()</a>.
  46. <hr style="margin-top:1.5em">
  47. <div style="text-align:center"><a href="index.htm">Index</a></div>
  48. </body>
  49. </html>