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