aboutsummaryrefslogtreecommitdiffstats
path: root/lib/percept/doc/src/egd_ug.xmlsrc
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2009-11-20 14:54:40 +0000
committerErlang/OTP <[email protected]>2009-11-20 14:54:40 +0000
commit84adefa331c4159d432d22840663c38f155cd4c1 (patch)
treebff9a9c66adda4df2106dfd0e5c053ab182a12bd /lib/percept/doc/src/egd_ug.xmlsrc
downloadotp-84adefa331c4159d432d22840663c38f155cd4c1.tar.gz
otp-84adefa331c4159d432d22840663c38f155cd4c1.tar.bz2
otp-84adefa331c4159d432d22840663c38f155cd4c1.zip
The R13B03 release.OTP_R13B03
Diffstat (limited to 'lib/percept/doc/src/egd_ug.xmlsrc')
-rw-r--r--lib/percept/doc/src/egd_ug.xmlsrc86
1 files changed, 86 insertions, 0 deletions
diff --git a/lib/percept/doc/src/egd_ug.xmlsrc b/lib/percept/doc/src/egd_ug.xmlsrc
new file mode 100644
index 0000000000..11f7ca6663
--- /dev/null
+++ b/lib/percept/doc/src/egd_ug.xmlsrc
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="latin1" ?>
+<!DOCTYPE chapter SYSTEM "chapter.dtd">
+
+<chapter>
+ <header>
+ <copyright>
+ <year>2007</year>
+ <year>2007</year>
+ <holder>Ericsson AB, All Rights Reserved</holder>
+ </copyright>
+ <legalnotice>
+ The contents of this file are subject to the Erlang Public License,
+ Version 1.1, (the "License"); you may not use this file except in
+ compliance with the License. You should have received a copy of the
+ Erlang Public License along with this software. If not, it can be
+ retrieved online at http://www.erlang.org/.
+
+ Software distributed under the License is distributed on an "AS IS"
+ basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ the License for the specific language governing rights and limitations
+ under the License.
+
+ The Initial Developer of the Original Code is Ericsson AB.
+ </legalnotice>
+
+ <title>egd</title>
+ <prepared>Bj�rn-Egil Dahlberg</prepared>
+ <docno></docno>
+ <date>2007-11-03</date>
+ <rev>A</rev>
+ <file>egd_ug.xml</file>
+ </header>
+ <section>
+ <title>Introduction</title>
+ <p>
+ The egd module is an interface for 2d-image rendering and is used by
+ Percept to generate dynamic graphs to its web pages. All code is pure
+ erlang, no drivers needed.
+ </p>
+ <p>
+ The library is intended for small to medium image sizes with low
+ complexity for optimal performance. The library handles horizontal
+ lines better then vertical lines.
+ </p>
+ <p>
+ The foremost purpose for this module is to enable users to
+ generate images from erlang code and/or datasets and to
+ send these images to either files or web servers.
+ </p>
+ </section>
+ <section>
+ <title>File example</title>
+ <p>Drawing examples:</p>
+ <codeinclude file="img.erl" tag="" type="none"></codeinclude>
+ <image file="test1.gif">
+ First save.
+ <icaption>test1.png</icaption>
+ </image>
+ <image file="test2.gif">
+ Second save.
+ <icaption>test2.png</icaption>
+ </image>
+ <image file="test3.gif">
+ Third save.
+ <icaption>test3.png</icaption>
+ </image>
+ <image file="test4.gif">
+ Fourth save.
+ <icaption>test4.png</icaption>
+ </image>
+ </section>
+ <section>
+ <title>ESI example</title>
+ <p>Using egd with inets ESI to generate images on the fly:</p>
+ <codeinclude file="img_esi.erl" tag="" type="none"></codeinclude>
+ <image file="img_esi_result.gif">
+ <icaption>Example of result.</icaption>
+ </image>
+ <p>
+ For more information regarding ESI, please see inets application
+ <seealso marker="inets:mod_esi">mod_esi</seealso>.
+ </p>
+ </section>
+</chapter>
+
+