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 whichyou can use to draw arbitrary shapes and still have access to some ofthe convenient features of JpGraph.</P><P> You can work with a canvas in different levels of complexity. Youcan for example work directly with the Image class which provides alarge number of primitives for drawing but requires that you useabsolute 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 iteasier by letting you work on a grid you have specified yourself. Italso makes it very easy to re-scale you image automatically by justchanging your scale. For example to half the size of you drawing youjust make the scale twice as large.</P><P> To give you some help in working with different canvas you shouldinclude the "jpgraph_canvtools.php" file when working on canvases. Thisis not strictly necessary but it will give you some nice abstraction tohelp you create your masterpieces.</P><P> As another (concrete) example on the use of a canvas the figurebelow 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 anumber of text boxes <A href="exframes/frame_listfontsex1.html" target="blank">[src]</A> <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>