Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
2
<HTML>
3
<HEAD>
4
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
5
<LINK REL="Start" HREF="index.html">
6
<LINK REL="Contents" HREF="toc.html">
7
<LINK REL="Prev" HREF="44ThebasicprincipleofJpGraphandthecreationofimages.html">
8
<LINK REL="Next" HREF="46Alternativestostreamingbacktheimage.html">
9
<STYLE TYPE="text/css"><!--
10
BODY { font-family: serif }
11
H1 { font-family: sans-serif }
12
H2 { font-family: sans-serif }
13
H3 { font-family: sans-serif }
14
H4 { font-family: sans-serif }
15
H5 { font-family: sans-serif }
16
H6 { font-family: sans-serif }
17
SUB { font-size: smaller }
18
SUP { font-size: smaller }
19
PRE { font-family: monospace }
20
A { text-decoration: none }
21
--></STYLE>
22
</HEAD>
23
<BODY>
24
<A HREF="toc.html">Contents</A>
25
<A HREF="44ThebasicprincipleofJpGraphandthecreationofimages.html">Previous</A>
26
<A HREF="46Alternativestostreamingbacktheimage.html">Next</A>
27
<HR NOSHADE>
28
<H2><A NAME="4_5">4.5  Choosing the image format for JpGraph</A></H2>
29
<P> By default JpGraph automatically chooses the image format to use in
30
 the order PNG, JPEG and GIF. The exact format depends on what is
31
 available on your system. There are two ways you can influence the way
32
 the graphic format is chosen.</P>
33
<OL>
34
<LI> Change the default graphic format by changing the DEFINE<DIV class="phpscript">
35
<CODE><FONT color="#000000"> <FONT color="#0000BB">&nbsp;DEFINE</FONT><FONT color="#007700">
36
(</FONT><FONT color="#DD0000">&quot;DEFAULT_GFORMAT&quot;</FONT><FONT color="#007700">
37
,</FONT><FONT color="#DD0000">&quot;auto&quot;</FONT><FONT color="#007700">);</FONT><FONT
38
color="#0000BB"></FONT></FONT></CODE></DIV>
39
<P></P>
40
</LI>
41
<LI> Set the graphic format in your script by calling the method <A href="../ref/Image.html#_IMAGE_SETIMGFORMAT">
42
 SetImgFormat()</A> For example, to force your script to use JPEG in one
43
 specific image use<DIV class="phpscript"><CODE><FONT color="#000000"> <FONT
44
color="#0000BB">&nbsp;$graph</FONT><FONT color="#007700">-&gt;</FONT><FONT color="#0000BB">
45
img</FONT><FONT color="#007700">-&gt;</FONT><FONT color="#0000BB">
46
SetImgFormat</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">
47
&quot;jpeg&quot;</FONT><FONT color="#007700">)</FONT><FONT color="#0000BB"></FONT></FONT>
48
</CODE></DIV>
49
<P></P>
50
</LI>
51
</OL>
52
<P></P>
53
<HR NOSHADE>
54
<A HREF="toc.html">Contents</A>
55
<A HREF="44ThebasicprincipleofJpGraphandthecreationofimages.html">Previous</A>
56
<A HREF="46Alternativestostreamingbacktheimage.html">Next</A>
57
</BODY>
58
</HTML>