source: trunk/phpgwapi/inc/fpdf/doc/image.htm @ 2

Revision 2, 2.4 KB checked in by niltonneto, 17 years ago (diff)

Removida todas as tags usadas pelo CVS ($Id, $Source).
Primeira versão no CVS externo.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
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>
111.1
12<H4 CLASS='st'>Description</H4>
13Puts an image in the page. The upper-left corner must be given. The dimensions can be specified
14in 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
18proportions
19<LI>no explicit dimension, in which case the image is put at 72 dpi
20</UL>
21Supported formats are JPEG and PNG.
22<BR>
23<BR>
24For JPEG, all flavors are allowed:
25<UL>
26<LI>gray scales
27<LI>true colors (24 bits)
28<LI>CMYK (32 bits)
29</UL>
30For 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>
36but are not supported:
37<UL>
38<LI>Interlacing
39<LI>Alpha channel
40</UL>
41If a transparent color is defined, it will be taken into account (but will be only interpreted
42by Acrobat 4 and above).
43<BR>
44The format can be specified explicitly or inferred from the file extension.
45<BR>
46It is possible to put a link on the image.
47<BR>
48<BR>
49Remark: 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>
53Name of the file containing the image.
54</BLOCKQUOTE>
55<TT><U>x</U></TT>
56<BLOCKQUOTE>
57Abscissa of the upper-left corner.
58</BLOCKQUOTE>
59<TT><U>y</U></TT>
60<BLOCKQUOTE>
61Ordinate of the upper-left corner.
62</BLOCKQUOTE>
63<TT><U>w</U></TT>
64<BLOCKQUOTE>
65Width of the image in the page. If not specified or equal to zero, it is automatically
66calculated.
67</BLOCKQUOTE>
68<TT><U>h</U></TT>
69<BLOCKQUOTE>
70Height of the image in the page. If not specified or equal to zero, it is automatically
71calculated.
72</BLOCKQUOTE>
73<TT><U>type</U></TT>
74<BLOCKQUOTE>
75Image format. Possible values are (case insensitive): <TT>JPG</TT>, <TT>JPEG</TT>, <TT>PNG</TT>.
76If not specified, the type is inferred from the file extension.
77</BLOCKQUOTE>
78<TT><U>link</U></TT>
79<BLOCKQUOTE>
80URL 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>
Note: See TracBrowser for help on using the repository browser.