Subversion-Projekte lars-tiefland.php_share

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
<LINK REL="Start" HREF="index.html">
<LINK REL="Contents" HREF="toc.html">
<LINK REL="Prev" HREF="10Workingwithcanvasgraphs.html">
<LINK REL="Next" HREF="102Creatingasimplecanvas.html">
<STYLE TYPE="text/css"><!--
BODY { font-family: serif }
H1 { font-family: sans-serif }
H2 { font-family: sans-serif }
H3 { font-family: sans-serif }
H4 { font-family: sans-serif }
H5 { font-family: sans-serif }
H6 { font-family: sans-serif }
SUB { font-size: smaller }
SUP { font-size: smaller }
PRE { font-family: monospace }
A { text-decoration: none }
--></STYLE>
</HEAD>
<BODY>
<A HREF="toc.html">Contents</A>
<A HREF="10Workingwithcanvasgraphs.html">Previous</A>
<A HREF="102Creatingasimplecanvas.html">Next</A>
<HR NOSHADE>
<H2><A NAME="10_1">10.1 Introduction</A></H2>
<P> Canvas graph is really not a graph. It a blank sheet of paper which
 you can use to draw arbitrary shapes and still have access to some of
 the convenient features of JpGraph.</P>
<P> You can work with a canvas in different levels of complexity. You
 can for example work directly with the Image class which provides a
 large number of primitives for drawing but requires that you use
 absolute pixel coordinates.</P>
<P> You can also make life a little bit easier by using a canvas scale.
 This lets you define your own scale on the canvas which often makes it
 easier by letting you work on a grid you have specified yourself. It
 also makes it very easy to re-scale you image automatically by just
 changing your scale. For example to half the size of you drawing you
 just make the scale twice as large.</P>
<P> To give you some help in working with different canvas you should
 include the &quot;jpgraph_canvtools.php&quot; file when working on canvases. This
 is not strictly necessary but it will give you some nice abstraction to
 help you create your masterpieces.</P>
<P> As another (concrete) example on the use of a canvas the figure
 below is a listing of font styles available with JpGraph.<DIV class="example">
<BR> <A href="exframes/frame_listfontsex1.html" target="blank"><IMG border="0"
HEIGHT="450"       src="img/img/img/img/img/img/listfontsex1.png" WIDTH="550"></A>
<BR><B>Figure 187:</B> Another example of using a canvas to draw a
 number of text boxes <A href="exframes/frame_listfontsex1.html" target="blank">
[src]</A>&nbsp;
<P></P>
</DIV></P>
<P></P>
<HR NOSHADE>
<A HREF="toc.html">Contents</A>
<A HREF="10Workingwithcanvasgraphs.html">Previous</A>
<A HREF="102Creatingasimplecanvas.html">Next</A>
</BODY>
</HTML>