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="75HowdoesStrokeCSIMwork.html"><LINK REL="Next" HREF="77Imagemapsandthecachesystem.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="75HowdoesStrokeCSIMwork.html">Previous</A><A HREF="77Imagemapsandthecachesystem.html">Next</A><HR NOSHADE><H2><A NAME="7_6">7.6 Getting hold of the image map</A></H2><P> In the case where you want to store the image on disk and later useit in an img-tag you need to get hold of the image map. For this youwill have to use the function <A href="../ref/Graph.html#_GRAPH_GETHTMLIMAGEMAP">Graph::GetHTMLImageMap()</A></P><P> An example of the use of this is shown below. With these lines theimage will be written to a file. The script then returns a HTML pagewhich contains the Client side image map and an img-tag which willretrieve the previously stored file.<DIV class="phpscript"><CODE><FONT color="#000000"><FONT color="#0000BB"> $graph</FONT><FONT color="#007700">-></FONT><FONTcolor="#0000BB">Stroke</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">"/usr/local/httpd/htdocs/img/image001.png"</FONT><FONT color="#007700">);<BR>echo </FONT><FONT color="#0000BB">$graph</FONT><FONT color="#007700">-></FONT><FONT color="#0000BB">GetHTMLImageMap</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">"myimagemap001"</FONT><FONT color="#007700">);<BR>echo </FONT><FONT color="#DD0000">"<img src=\"img/image001.png\" ISMAP USEMAP=\"#myimagemap001\" border=0>"</FONT><FONT color="#007700">;</FONT><FONT color="#0000BB"></FONT></FONT></CODE></DIV></P><P></P><P></P><HR NOSHADE><A HREF="toc.html">Contents</A><A HREF="75HowdoesStrokeCSIMwork.html">Previous</A><A HREF="77Imagemapsandthecachesystem.html">Next</A></BODY></HTML>