setfillcolor.htm 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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>SetFillColor</title>
  6. <link type="text/css" rel="stylesheet" href="../fpdf.css">
  7. </head>
  8. <body>
  9. <h1>SetFillColor</h1>
  10. <code>SetFillColor(<b>int</b> r [, <b>int</b> g, <b>int</b> b])</code>
  11. <h2>Descripción</h2>
  12. Define el color usado por todas las operaciones de relleno (rectángulos rellenos y fondos de celdas). Este puede ser
  13. expresado en componentes RGB o escala de grises. El método puede ser invocado antes que la primera página sea creada
  14. y el valor es conservado de página a página.
  15. <h2>Parámetros</h2>
  16. <dl class="param">
  17. <dt><code>r</code></dt>
  18. <dd>
  19. Si <code>g</code> y <code>b</code> se establecen, componente rojo; si no, indica el nivel de gris.
  20. Valor entre 0 y 255.
  21. </dd>
  22. <dt><code>g</code></dt>
  23. <dd>
  24. Componente verde (entre 0 y 255).
  25. </dd>
  26. <dt><code>b</code></dt>
  27. <dd>
  28. Componente azul (entre 0 y 255).
  29. </dd>
  30. </dl>
  31. <h2>Vea además</h2>
  32. <a href="setdrawcolor.htm">SetDrawColor</a>,
  33. <a href="settextcolor.htm">SetTextColor</a>,
  34. <a href="rect.htm">Rect</a>,
  35. <a href="cell.htm">Cell</a>,
  36. <a href="multicell.htm">MultiCell</a>
  37. <hr style="margin-top:1.5em">
  38. <div style="text-align:center"><a href="index.htm">Inicio</a></div>
  39. </body>
  40. </html>