settextcolor.htm 1.2 KB

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