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="11Workingwithcanvasgraphs.html">
8
<LINK REL="Next" HREF="112Creatingasimplecanvas.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="11Workingwithcanvasgraphs.html">Previous</A>
26
<A HREF="112Creatingasimplecanvas.html">Next</A>
27
<HR NOSHADE>
28
<H2><A NAME="11_1">11.1 Introduction</A></H2>
29
<P> Canvas graph is really not a graph. It a blank sheet of paper which
30
 you can use to draw arbitrary shapes and still have access to some of
31
 the convenient features of JpGraph.</P>
32
<P> You can work with a canvas in different levels of complexity. You
33
 can for example work directly with the Image class which provides a
34
 large number of primitives for drawing but requires that you use
35
 absolute pixel coordinates.</P>
36
<P> You can also make life a little bit easier by using a canvas scale.
37
 This lets you define your own scale on the canvas which often makes it
38
 easier by letting you work on a grid you have specified yourself. It
39
 also makes it very easy to re-scale you image automatically by just
40
 changing your scale. For example to half the size of you drawing you
41
 just make the scale twice as large.</P>
42
<P> To give you some help in working with different canvas you should
43
 include the &quot;jpgraph_canvtools.php&quot; file when working on canvases. This
44
 is not strictly necessary but it will give you some nice abstraction to
45
 help you create your masterpieces.</P>
46
<P> As another (concrete) example on the use of a canvas the figure
47
 below is a listing of font styles available with JpGraph.<DIV class="example">
48
<BR> <A href="exframes/frame_listfontsex1.html" target="blank"><IMG border="0"
49
HEIGHT="450"  src="img/listfontsex1.png" WIDTH="550"></A>
50
<BR><B>Figure 183:</B> Another example of using a canvas to draw a
51
 number of text boxes <A href="exframes/frame_listfontsex1.html" target="blank">
52
[src]</A>&nbsp;
53
<P></P>
54
</DIV></P>
55
<P></P>
56
<HR NOSHADE>
57
<A HREF="toc.html">Contents</A>
58
<A HREF="11Workingwithcanvasgraphs.html">Previous</A>
59
<A HREF="112Creatingasimplecanvas.html">Next</A>
60
</BODY>
61
</HTML>