image.htm 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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>Image</TITLE>
  6. <LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
  7. </HEAD>
  8. <BODY>
  9. <H2>Image</H2>
  10. <TT>Image(<B>string</B> file, <B>float</B> x, <B>float</B> y [, <B>float</B> w [, <B>float</B> h [, <B>string</B> type [, <B>mixed</B> link]]]])</TT>
  11. <H4 CLASS='st'>Version</H4>
  12. 1.1
  13. <H4 CLASS='st'>Description</H4>
  14. Puts an image in the page. The upper-left corner must be given. The dimensions can be specified
  15. in different ways:
  16. <UL>
  17. <LI>explicit width and height (expressed in user unit)
  18. <LI>one explicit dimension, the other being calculated automatically in order to keep the original
  19. proportions
  20. <LI>no explicit dimension, in which case the image is put at 72 dpi
  21. </UL>
  22. Supported formats are JPEG and PNG.
  23. <BR>
  24. <BR>
  25. For JPEG, all flavors are allowed:
  26. <UL>
  27. <LI>gray scales
  28. <LI>true colors (24 bits)
  29. <LI>CMYK (32 bits)
  30. </UL>
  31. For PNG, are allowed:
  32. <UL>
  33. <LI>gray scales on at most 8 bits (256 levels)
  34. <LI>indexed colors
  35. <LI>true colors (24 bits)
  36. </UL>
  37. but are not supported:
  38. <UL>
  39. <LI>Interlacing
  40. <LI>Alpha channel
  41. </UL>
  42. If a transparent color is defined, it will be taken into account (but will be only interpreted
  43. by Acrobat 4 and above).
  44. <BR>
  45. The format can be specified explicitly or inferred from the file extension.
  46. <BR>
  47. It is possible to put a link on the image.
  48. <BR>
  49. <BR>
  50. Remark: if an image is used several times, only one copy will be embedded in the file.
  51. <H4 CLASS='st'>Parameters</H4>
  52. <TT><U>file</U></TT>
  53. <BLOCKQUOTE>
  54. Name of the file containing the image.
  55. </BLOCKQUOTE>
  56. <TT><U>x</U></TT>
  57. <BLOCKQUOTE>
  58. Abscissa of the upper-left corner.
  59. </BLOCKQUOTE>
  60. <TT><U>y</U></TT>
  61. <BLOCKQUOTE>
  62. Ordinate of the upper-left corner.
  63. </BLOCKQUOTE>
  64. <TT><U>w</U></TT>
  65. <BLOCKQUOTE>
  66. Width of the image in the page. If not specified or equal to zero, it is automatically
  67. calculated.
  68. </BLOCKQUOTE>
  69. <TT><U>h</U></TT>
  70. <BLOCKQUOTE>
  71. Height of the image in the page. If not specified or equal to zero, it is automatically
  72. calculated.
  73. </BLOCKQUOTE>
  74. <TT><U>type</U></TT>
  75. <BLOCKQUOTE>
  76. Image format. Possible values are (case insensitive): <TT>JPG</TT>, <TT>JPEG</TT>, <TT>PNG</TT>.
  77. If not specified, the type is inferred from the file extension.
  78. </BLOCKQUOTE>
  79. <TT><U>link</U></TT>
  80. <BLOCKQUOTE>
  81. URL or identifier returned by AddLink().
  82. </BLOCKQUOTE>
  83. <H4 CLASS='st'>See also</H4>
  84. <A HREF="addlink.htm">AddLink()</A>.
  85. <HR STYLE="margin-top:1.2em">
  86. <DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
  87. </BODY>
  88. </HTML>