rect.htm 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. <H2>Rect</H2>
  10. <TT>Rect(<B>float</B> x, <B>float</B> y, <B>float</B> w, <B>float</B> h [, <B>string</B> style])</TT>
  11. <H4 CLASS='st'>Version</H4>
  12. 1.0
  13. <H4 CLASS='st'>Description</H4>
  14. Outputs a rectangle. It can be drawn (border only), filled (with no border) or both.
  15. <H4 CLASS='st'>Parameters</H4>
  16. <TT><U>x</U></TT>
  17. <BLOCKQUOTE>
  18. Abscissa of upper-left corner.
  19. </BLOCKQUOTE>
  20. <TT><U>y</U></TT>
  21. <BLOCKQUOTE>
  22. Ordinate of upper-left corner.
  23. </BLOCKQUOTE>
  24. <TT><U>w</U></TT>
  25. <BLOCKQUOTE>
  26. Width.
  27. </BLOCKQUOTE>
  28. <TT><U>h</U></TT>
  29. <BLOCKQUOTE>
  30. Height.
  31. </BLOCKQUOTE>
  32. <TT><U>style</U></TT>
  33. <BLOCKQUOTE>
  34. Style of rendering. Possible values are:
  35. <UL>
  36. <LI><TT>D</TT> or empty string: draw. This is the default value.
  37. <LI><TT>F</TT>: fill
  38. <LI><TT>DF</TT> or <TT>FD</TT>: draw and fill
  39. </UL>
  40. </BLOCKQUOTE>
  41. <H4 CLASS='st'>See also</H4>
  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.2em">
  46. <DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
  47. </BODY>
  48. </HTML>