maxGraph/dotnet/docs/html/classcom_1_1mxgraph_1_1mxGd...

1900 lines
85 KiB
HTML
Raw Normal View History

2012-05-21 20:32:26 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>mxGraph: com::mxgraph::mxGdiCanvas2D Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="dirs.html"><span>Directories</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath"><b>com</b>::<b>mxgraph</b>::<a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html">mxGdiCanvas2D</a>
</div>
</div>
<div class="contents">
<h1>com::mxgraph::mxGdiCanvas2D Class Reference</h1><!-- doxytag: class="com::mxgraph::mxGdiCanvas2D" --><!-- doxytag: inherits="com::mxgraph::mxICanvas2D" -->
<p>Used for exporting images. To render to an image from a given XML string, graph size and and background color, the following code is used: </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#aaece05317ab22246d7be9221d7e30ed3" title="Draws an image.">Image</a> image = mxUtils.CreateImage(width, height, background);
Graphics g = Graphics.FromImage(image);
g.SmoothingMode = SmoothingMode.HighQuality;
mxSaxOutputHandler handler = <span class="keyword">new</span> mxSaxOutputHandler(<span class="keyword">new</span> <a class="code" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#af68a0bc9a8655aa30db90e8d230e9c9b">mxGdiCanvas2D</a>(g));
handler.Read(<span class="keyword">new</span> XmlTextReader(<span class="keyword">new</span> StringReader(xml)));
</pre></div> Text rendering is available for plain text only, with optional word wrapping.
<a href="#_details">More...</a></p>
<div class="dynheader">
Inheritance diagram for com::mxgraph::mxGdiCanvas2D:</div>
<div class="dynsection">
<div class="center">
<img src="classcom_1_1mxgraph_1_1mxGdiCanvas2D.png" usemap="#com::mxgraph::mxGdiCanvas2D_map" alt=""/>
<map id="com::mxgraph::mxGdiCanvas2D_map" name="com::mxgraph::mxGdiCanvas2D_map">
<area href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html" alt="com::mxgraph::mxICanvas2D" shape="rect" coords="0,0,188,24"/>
</map>
</div>
</div>
<p><a href="classcom_1_1mxgraph_1_1mxGdiCanvas2D-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D_1_1CanvasState.html">CanvasState</a></td></tr>
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#af68a0bc9a8655aa30db90e8d230e9c9b">mxGdiCanvas2D</a> (Graphics g)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#ace20f35dae70d42164f3d5aa422eee9c">Save</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#aef706f844a586f48ef3c96731dbb687d">Restore</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a427ec8105550a274f1a08ff8113d687d">Scale</a> (double value)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the given scale. <a href="#a427ec8105550a274f1a08ff8113d687d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a541aa4694c566326143ffb5492674719">Translate</a> (double dx, double dy)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Translates the canvas. <a href="#a541aa4694c566326143ffb5492674719"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#ac5af10b7d8e1f0f9c163da14cd51eb9e">Rotate</a> (double theta, bool flipH, bool flipV, double cx, double cy)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Rotates the canvas. <a href="#ac5af10b7d8e1f0f9c163da14cd51eb9e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a0e38c2ec1e182a78480140a676a49e06">SetGradient</a> (String color1, String color2, double x, double y, double w, double h, String direction)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the given gradient. <a href="#a0e38c2ec1e182a78480140a676a49e06"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#aeac7fbfd34479f1b994cc8b4ecf0bc5e">SetGlassGradient</a> (double x, double y, double w, double h)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the given glass gradient. <a href="#aeac7fbfd34479f1b994cc8b4ecf0bc5e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#abf1749074624b5f849b8b12c85d81233">Rect</a> (double x, double y, double w, double h)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws a rectangle. <a href="#abf1749074624b5f849b8b12c85d81233"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#ad4fccac39e1182fade708caf0a57eaf3">Roundrect</a> (double x, double y, double w, double h, double dx, double dy)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a23449cbcc3027e256de3ce5f2bbcd816">Ellipse</a> (double x, double y, double w, double h)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws an ellipse. <a href="#a23449cbcc3027e256de3ce5f2bbcd816"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#aaece05317ab22246d7be9221d7e30ed3">Image</a> (double x, double y, double w, double h, String src, bool aspect, bool flipH, bool flipV)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws an image. <a href="#aaece05317ab22246d7be9221d7e30ed3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a083e98246802e087c999f16a4f8b7407">Text</a> (double x, double y, double w, double h, string str, string align, string valign, bool vertical, bool wrap, string format)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a912799fcd5815fe7ef01cffa09db2df4">Begin</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a1311082c50b96983ef88056f0f924be4">MoveTo</a> (double x, double y)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a2be519434efaeb4663cd9ae7cc31d49d">LineTo</a> (double x, double y)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#adbef5129943b03e4e349f36139926f6e">QuadTo</a> (double x1, double y1, double x2, double y2)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#aaa2904f7cac79881913fe04c1a209181">CurveTo</a> (double x1, double y1, double x2, double y2, double x3, double y3)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a74b61843c65431397481572da60234c9">Close</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a0278180b14e6ed4bf0075855c73f074b">Stroke</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#ae53d52437c829ca4f99b9302a5fc4864">Fill</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a5dd3031fb89d6f1d18e7433249a3fdd3">FillAndStroke</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#abeccbac84e25abacd71e4059521a37bf">Shadow</a> (String value, bool filled)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#ac7b2da6955b71fa92e0acdb540d27644">Clip</a> ()</td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static StringFormat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a1d76c9e4f021f98578088e536c2cb50a">CreateStringFormat</a> (string align, string valign, bool wrap)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates the specified string format. <a href="#a1d76c9e4f021f98578088e536c2cb50a"></a><br/></td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Color&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a49a2d9c26dd1afc66aeaf0be3972bba3">ParseColor</a> (string hex)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Helper method that uses <a class="el" href="">mxUtils#parseColor(String)</a>. Subclassers. <a href="#a49a2d9c26dd1afc66aeaf0be3972bba3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a807941de776f8e92b7c73639c0abe815">DrawImage</a> (Image image, Rectangle bounds)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Implements the call to the graphics API. <a href="#a807941de776f8e92b7c73639c0abe815"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Image&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a990c73e19081acbb58bdb0edbe313d1f">LoadImage</a> (String src)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Loads the specified image. <a href="#a990c73e19081acbb58bdb0edbe313d1f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Rectangle&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a7c7c5e074e3f8fee151e0ce7be4ea240">GetImageBounds</a> (Image img, double x, double y, double w, double h, bool aspect)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the bounds for the given image. <a href="#a7c7c5e074e3f8fee151e0ce7be4ea240"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Size&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a74865ef852d7c4b6f05163c95ddb4785">GetImageSize</a> (Image image)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the size for the given image. <a href="#a74865ef852d7c4b6f05163c95ddb4785"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#afbf738dda3e2f5dcb3814f2a3b8342af">ConfigureImageGraphics</a> (double x, double y, double w, double h, bool flipH, bool flipV)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a02e23930cf57f18fa376d0c868e39d61">GetTextWidth</a> (double x, double y, double w, double h, string align, string valign, bool vertical, Font font, string text, bool wrap, string format)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the width to be used to render the specifies text. <a href="#a02e23930cf57f18fa376d0c868e39d61"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a833a10444fd1ced3ee9e3fb36e12851d">GetVerticalTextPosition</a> (double x, double y, double w, double h, string align, string valign, bool vertical, Font font, string text, bool wrap, string format)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default alignment is top. <a href="#a833a10444fd1ced3ee9e3fb36e12851d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a96ecfe8d425f793da3b646b48be02d35">GetHorizontalTextPosition</a> (double x, double y, double w, double h, string align, string valign, bool vertical, Font font, string text, bool wrap, string format)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default alignment is left. <a href="#a96ecfe8d425f793da3b646b48be02d35"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a8f3187310e70282e8d2c9a662e8ea92b">UpdateFont</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Font&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#ae1eb2fce0a82af1bacd9232a99edd63c">CreateFont</a> (String family, FontStyle style, int size)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a97a780d6f3b4b24f6bc62ad524cccca4">UpdatePen</a> ()</td></tr>
<tr><td colspan="2"><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Graphics&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#aee6c39db9b3b2a0de38834f3b269bfc3">graphics</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D_1_1CanvasState.html">CanvasState</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a303fe4863af0b0682531e41a0a86c2b2">state</a> = new <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D_1_1CanvasState.html">CanvasState</a>()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Stack&lt; <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D_1_1CanvasState.html">CanvasState</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#abc5fcb884643bbea7bc7ef6234a37859">stack</a> = new Stack&lt;<a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D_1_1CanvasState.html">CanvasState</a>&gt;()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GraphicsPath&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a72fef5bf7f66445b934a21caab5e7742">currentPath</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a2f594bc974a37b0838751ae67f9ce8d1">lastPoint</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Holds the last point of a moveTo or lineTo operation to determine if the. <a href="#a2f594bc974a37b0838751ae67f9ce8d1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a3fc5d5d55bffc42a02714b23d46c4f18">currentShadowValue</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Holds the current value for the shadow color. This is used to hold the. <a href="#a3fc5d5d55bffc42a02714b23d46c4f18"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Color&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#aa3055da45b5c778072dddd4071a03f1d">currentShadowColor</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Holds the current parsed shadow color. This holds the result of parsing. <a href="#aa3055da45b5c778072dddd4071a03f1d"></a><br/></td></tr>
<tr><td colspan="2"><h2>Properties</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#ac45d24fb89674db75ee34825bfe8739e">StrokeWidth</a><code> [set]</code></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the strokewidth. <a href="#ac45d24fb89674db75ee34825bfe8739e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#addc63fa18ad55a6d496137c52c2f6410">StrokeColor</a><code> [set]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#aa77ee2108750ef5c2e4e60306feb1a0d">Dashed</a><code> [set]</code></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Specifies if lines are dashed. <a href="#aa77ee2108750ef5c2e4e60306feb1a0d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a92aaa9ef4ad6f542db277e988bcc41b5">DashPattern</a><code> [set]</code></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the dashpattern. <a href="#a92aaa9ef4ad6f542db277e988bcc41b5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#aeb5e8e776beb7049c86cd225748033e4">LineCap</a><code> [set]</code></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the linecap. <a href="#aeb5e8e776beb7049c86cd225748033e4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#aeb7383d17e4ae8c2d90798ae06a22c94">LineJoin</a><code> [set]</code></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the linejoin. <a href="#aeb7383d17e4ae8c2d90798ae06a22c94"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a9eb9a243faf69d55a94862f93f5aa985">MiterLimit</a><code> [set]</code></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the miterlimit. <a href="#a9eb9a243faf69d55a94862f93f5aa985"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#ad71b4013cd083413c542e53818d32ef3">FontSize</a><code> [set]</code></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the fontsize. <a href="#ad71b4013cd083413c542e53818d32ef3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#ac6f30b477f76d920c5597edd1d687e10">FontColor</a><code> [set]</code></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the fontcolor. <a href="#ac6f30b477f76d920c5597edd1d687e10"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#ae19b4bee4c6caca4f578037ba3d341d2">FontFamily</a><code> [set]</code></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the font family. <a href="#ae19b4bee4c6caca4f578037ba3d341d2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a9e4c081acdb7fc0b363adbfa345f0671">FontStyle</a><code> [set]</code></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the given fontstyle. <a href="#a9e4c081acdb7fc0b363adbfa345f0671"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#ad30fb99f1065da8fb956ceb519884381">Alpha</a><code> [set]</code></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the given alpha. <a href="#ad30fb99f1065da8fb956ceb519884381"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a192122f8dd7753b20c59cb33458c2e4b">FillColor</a><code> [set]</code></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the given fillcolor. <a href="#a192122f8dd7753b20c59cb33458c2e4b"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Used for exporting images. To render to an image from a given XML string, graph size and and background color, the following code is used: </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#aaece05317ab22246d7be9221d7e30ed3" title="Draws an image.">Image</a> image = mxUtils.CreateImage(width, height, background);
Graphics g = Graphics.FromImage(image);
g.SmoothingMode = SmoothingMode.HighQuality;
mxSaxOutputHandler handler = <span class="keyword">new</span> mxSaxOutputHandler(<span class="keyword">new</span> <a class="code" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#af68a0bc9a8655aa30db90e8d230e9c9b">mxGdiCanvas2D</a>(g));
handler.Read(<span class="keyword">new</span> XmlTextReader(<span class="keyword">new</span> StringReader(xml)));
</pre></div> <p>Text rendering is available for plain text only, with optional word wrapping. </p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="af68a0bc9a8655aa30db90e8d230e9c9b"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::mxGdiCanvas2D" ref="af68a0bc9a8655aa30db90e8d230e9c9b" args="(Graphics g)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">com::mxgraph::mxGdiCanvas2D::mxGdiCanvas2D </td>
<td>(</td>
<td class="paramtype">Graphics&nbsp;</td>
<td class="paramname"> <em>g</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Constructs a new graphics export canvas. </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a912799fcd5815fe7ef01cffa09db2df4"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::Begin" ref="a912799fcd5815fe7ef01cffa09db2df4" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::Begin </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#af2b8668d5b175b816c51951a61bfa02a">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="ac7b2da6955b71fa92e0acdb540d27644"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::Clip" ref="ac7b2da6955b71fa92e0acdb540d27644" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::Clip </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#a7422851f67a552d9ec84bf5ed06214d6">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="a74b61843c65431397481572da60234c9"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::Close" ref="a74b61843c65431397481572da60234c9" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::Close </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Closes the current path. </p>
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#ac4ec8848dd2d583be1589103f2e00560">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="afbf738dda3e2f5dcb3814f2a3b8342af"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::ConfigureImageGraphics" ref="afbf738dda3e2f5dcb3814f2a3b8342af" args="(double x, double y, double w, double h, bool flipH, bool flipV)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::ConfigureImageGraphics </td>
<td>(</td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>w</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>h</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>flipH</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>flipV</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a graphic instance for rendering an image. </p>
</div>
</div>
<a class="anchor" id="ae1eb2fce0a82af1bacd9232a99edd63c"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::CreateFont" ref="ae1eb2fce0a82af1bacd9232a99edd63c" args="(String family, FontStyle style, int size)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Font com::mxgraph::mxGdiCanvas2D::CreateFont </td>
<td>(</td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>family</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">FontStyle&nbsp;</td>
<td class="paramname"> <em>style</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&nbsp;</td>
<td class="paramname"> <em>size</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Hook for subclassers to implement font caching. </p>
</div>
</div>
<a class="anchor" id="a1d76c9e4f021f98578088e536c2cb50a"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::CreateStringFormat" ref="a1d76c9e4f021f98578088e536c2cb50a" args="(string align, string valign, bool wrap)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static StringFormat com::mxgraph::mxGdiCanvas2D::CreateStringFormat </td>
<td>(</td>
<td class="paramtype">string&nbsp;</td>
<td class="paramname"> <em>align</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&nbsp;</td>
<td class="paramname"> <em>valign</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>wrap</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline, static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates the specified string format. </p>
</div>
</div>
<a class="anchor" id="aaa2904f7cac79881913fe04c1a209181"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::CurveTo" ref="aaa2904f7cac79881913fe04c1a209181" args="(double x1, double y1, double x2, double y2, double x3, double y3)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::CurveTo </td>
<td>(</td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>x1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>y1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>x2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>y2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>x3</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>y3</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#ad913dc5a8030d5f802d6c62662a53969">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="a807941de776f8e92b7c73639c0abe815"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::DrawImage" ref="a807941de776f8e92b7c73639c0abe815" args="(Image image, Rectangle bounds)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::DrawImage </td>
<td>(</td>
<td class="paramtype">Image&nbsp;</td>
<td class="paramname"> <em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">Rectangle&nbsp;</td>
<td class="paramname"> <em>bounds</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Implements the call to the graphics API. </p>
</div>
</div>
<a class="anchor" id="a23449cbcc3027e256de3ce5f2bbcd816"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::Ellipse" ref="a23449cbcc3027e256de3ce5f2bbcd816" args="(double x, double y, double w, double h)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::Ellipse </td>
<td>(</td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>w</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>h</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Draws an ellipse. </p>
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#a83b9df27f2fe4806e71e5664b39ac556">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="ae53d52437c829ca4f99b9302a5fc4864"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::Fill" ref="ae53d52437c829ca4f99b9302a5fc4864" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::Fill </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#a97896c948354d29ad6036ec6882c7367">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="a5dd3031fb89d6f1d18e7433249a3fdd3"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::FillAndStroke" ref="a5dd3031fb89d6f1d18e7433249a3fdd3" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::FillAndStroke </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#adeb889eb1d1c5c1a0e00a0ce3dee9178">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="a96ecfe8d425f793da3b646b48be02d35"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::GetHorizontalTextPosition" ref="a96ecfe8d425f793da3b646b48be02d35" args="(double x, double y, double w, double h, string align, string valign, bool vertical, Font font, string text, bool wrap, string format)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double com::mxgraph::mxGdiCanvas2D::GetHorizontalTextPosition </td>
<td>(</td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>w</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>h</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&nbsp;</td>
<td class="paramname"> <em>align</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&nbsp;</td>
<td class="paramname"> <em>valign</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>vertical</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">Font&nbsp;</td>
<td class="paramname"> <em>font</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&nbsp;</td>
<td class="paramname"> <em>text</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>wrap</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&nbsp;</td>
<td class="paramname"> <em>format</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Default alignment is left. </p>
</div>
</div>
<a class="anchor" id="a7c7c5e074e3f8fee151e0ce7be4ea240"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::GetImageBounds" ref="a7c7c5e074e3f8fee151e0ce7be4ea240" args="(Image img, double x, double y, double w, double h, bool aspect)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Rectangle com::mxgraph::mxGdiCanvas2D::GetImageBounds </td>
<td>(</td>
<td class="paramtype">Image&nbsp;</td>
<td class="paramname"> <em>img</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>w</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>h</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>aspect</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the bounds for the given image. </p>
</div>
</div>
<a class="anchor" id="a74865ef852d7c4b6f05163c95ddb4785"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::GetImageSize" ref="a74865ef852d7c4b6f05163c95ddb4785" args="(Image image)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Size com::mxgraph::mxGdiCanvas2D::GetImageSize </td>
<td>(</td>
<td class="paramtype">Image&nbsp;</td>
<td class="paramname"> <em>image</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the size for the given image. </p>
</div>
</div>
<a class="anchor" id="a02e23930cf57f18fa376d0c868e39d61"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::GetTextWidth" ref="a02e23930cf57f18fa376d0c868e39d61" args="(double x, double y, double w, double h, string align, string valign, bool vertical, Font font, string text, bool wrap, string format)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double com::mxgraph::mxGdiCanvas2D::GetTextWidth </td>
<td>(</td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>w</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>h</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&nbsp;</td>
<td class="paramname"> <em>align</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&nbsp;</td>
<td class="paramname"> <em>valign</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>vertical</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">Font&nbsp;</td>
<td class="paramname"> <em>font</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&nbsp;</td>
<td class="paramname"> <em>text</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>wrap</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&nbsp;</td>
<td class="paramname"> <em>format</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the width to be used to render the specifies text. </p>
</div>
</div>
<a class="anchor" id="a833a10444fd1ced3ee9e3fb36e12851d"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::GetVerticalTextPosition" ref="a833a10444fd1ced3ee9e3fb36e12851d" args="(double x, double y, double w, double h, string align, string valign, bool vertical, Font font, string text, bool wrap, string format)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double com::mxgraph::mxGdiCanvas2D::GetVerticalTextPosition </td>
<td>(</td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>w</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>h</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&nbsp;</td>
<td class="paramname"> <em>align</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&nbsp;</td>
<td class="paramname"> <em>valign</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>vertical</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">Font&nbsp;</td>
<td class="paramname"> <em>font</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&nbsp;</td>
<td class="paramname"> <em>text</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>wrap</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&nbsp;</td>
<td class="paramname"> <em>format</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Default alignment is top. </p>
</div>
</div>
<a class="anchor" id="aaece05317ab22246d7be9221d7e30ed3"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::Image" ref="aaece05317ab22246d7be9221d7e30ed3" args="(double x, double y, double w, double h, String src, bool aspect, bool flipH, bool flipV)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::Image </td>
<td>(</td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>w</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>h</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>src</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>aspect</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>flipH</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>flipV</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Draws an image. </p>
</div>
</div>
<a class="anchor" id="a2be519434efaeb4663cd9ae7cc31d49d"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::LineTo" ref="a2be519434efaeb4663cd9ae7cc31d49d" args="(double x, double y)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::LineTo </td>
<td>(</td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>y</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#a7a86b49a5799e06a6545b2ef470051d0">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="a990c73e19081acbb58bdb0edbe313d1f"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::LoadImage" ref="a990c73e19081acbb58bdb0edbe313d1f" args="(String src)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Image com::mxgraph::mxGdiCanvas2D::LoadImage </td>
<td>(</td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>src</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Loads the specified image. </p>
</div>
</div>
<a class="anchor" id="a1311082c50b96983ef88056f0f924be4"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::MoveTo" ref="a1311082c50b96983ef88056f0f924be4" args="(double x, double y)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::MoveTo </td>
<td>(</td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>y</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#ad6739b41b41e978ab6966d981d31ccc2">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="a49a2d9c26dd1afc66aeaf0be3972bba3"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::ParseColor" ref="a49a2d9c26dd1afc66aeaf0be3972bba3" args="(string hex)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Color com::mxgraph::mxGdiCanvas2D::ParseColor </td>
<td>(</td>
<td class="paramtype">string&nbsp;</td>
<td class="paramname"> <em>hex</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Helper method that uses <a class="el" href="">mxUtils#parseColor(String)</a>. Subclassers. </p>
<p>can override this to implement caching for frequently used colors. </p>
</div>
</div>
<a class="anchor" id="adbef5129943b03e4e349f36139926f6e"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::QuadTo" ref="adbef5129943b03e4e349f36139926f6e" args="(double x1, double y1, double x2, double y2)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::QuadTo </td>
<td>(</td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>x1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>y1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>x2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>y2</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#a54d04210f84a725f6cf59336745c886a">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="abf1749074624b5f849b8b12c85d81233"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::Rect" ref="abf1749074624b5f849b8b12c85d81233" args="(double x, double y, double w, double h)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::Rect </td>
<td>(</td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>w</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>h</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Draws a rectangle. </p>
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#aba609b7d44a5ae5b4a391b5799a2f3ca">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="aef706f844a586f48ef3c96731dbb687d"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::Restore" ref="aef706f844a586f48ef3c96731dbb687d" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::Restore </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Restores the last canvas state. </p>
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#a4d2d8898cae7d385e87e471f968f835f">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="ac5af10b7d8e1f0f9c163da14cd51eb9e"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::Rotate" ref="ac5af10b7d8e1f0f9c163da14cd51eb9e" args="(double theta, bool flipH, bool flipV, double cx, double cy)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::Rotate </td>
<td>(</td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>theta</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>flipH</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>flipV</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>cx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>cy</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Rotates the canvas. </p>
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#ae99cad30f6516ca9faeafd4af4cb1ec5">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="ad4fccac39e1182fade708caf0a57eaf3"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::Roundrect" ref="ad4fccac39e1182fade708caf0a57eaf3" args="(double x, double y, double w, double h, double dx, double dy)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::Roundrect </td>
<td>(</td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>w</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>h</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>dx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>dy</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Draws a rounded rectangle. </p>
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#ac93807c8770627c3aec3c92d46383c45">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="ace20f35dae70d42164f3d5aa422eee9c"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::Save" ref="ace20f35dae70d42164f3d5aa422eee9c" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::Save </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Saves the current canvas state. </p>
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#acb028c15edb7471d8df2c9b4b288a2dc">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="a427ec8105550a274f1a08ff8113d687d"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::Scale" ref="a427ec8105550a274f1a08ff8113d687d" args="(double value)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::Scale </td>
<td>(</td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>value</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the given scale. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td></td></tr>
</table>
</dd>
</dl>
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#af281d95936e45eb668c516b56bd0bde8">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="aeac7fbfd34479f1b994cc8b4ecf0bc5e"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::SetGlassGradient" ref="aeac7fbfd34479f1b994cc8b4ecf0bc5e" args="(double x, double y, double w, double h)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::SetGlassGradient </td>
<td>(</td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>w</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>h</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the given glass gradient. </p>
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#a454419025bbd42ae392a5cd4d7d49163">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="a0e38c2ec1e182a78480140a676a49e06"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::SetGradient" ref="a0e38c2ec1e182a78480140a676a49e06" args="(String color1, String color2, double x, double y, double w, double h, String direction)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::SetGradient </td>
<td>(</td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>color1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>color2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>w</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>h</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>direction</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the given gradient. </p>
</div>
</div>
<a class="anchor" id="abeccbac84e25abacd71e4059521a37bf"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::Shadow" ref="abeccbac84e25abacd71e4059521a37bf" args="(String value, bool filled)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::Shadow </td>
<td>(</td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>value</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>filled</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td></td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a0278180b14e6ed4bf0075855c73f074b"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::Stroke" ref="a0278180b14e6ed4bf0075855c73f074b" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::Stroke </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#a801550a1789580c509257bc6ad8e8385">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="a083e98246802e087c999f16a4f8b7407"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::Text" ref="a083e98246802e087c999f16a4f8b7407" args="(double x, double y, double w, double h, string str, string align, string valign, bool vertical, bool wrap, string format)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::Text </td>
<td>(</td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>w</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>h</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&nbsp;</td>
<td class="paramname"> <em>str</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&nbsp;</td>
<td class="paramname"> <em>align</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&nbsp;</td>
<td class="paramname"> <em>valign</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>vertical</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>wrap</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&nbsp;</td>
<td class="paramname"> <em>format</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Draws the given text. </p>
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#afcf4c07955c595bfd332186cd6fa8be3">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="a541aa4694c566326143ffb5492674719"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::Translate" ref="a541aa4694c566326143ffb5492674719" args="(double dx, double dy)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::Translate </td>
<td>(</td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>dx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>dy</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Translates the canvas. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>dx</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>dy</em>&nbsp;</td><td></td></tr>
</table>
</dd>
</dl>
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#a82fad15cca1deb74e81ac504924f91d0">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="a8f3187310e70282e8d2c9a662e8ea92b"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::UpdateFont" ref="a8f3187310e70282e8d2c9a662e8ea92b" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::UpdateFont </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="a97a780d6f3b4b24f6bc62ad524cccca4"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::UpdatePen" ref="a97a780d6f3b4b24f6bc62ad524cccca4" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGdiCanvas2D::UpdatePen </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a72fef5bf7f66445b934a21caab5e7742"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::currentPath" ref="a72fef5bf7f66445b934a21caab5e7742" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">GraphicsPath <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a72fef5bf7f66445b934a21caab5e7742">com::mxgraph::mxGdiCanvas2D::currentPath</a><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Holds the current path. </p>
</div>
</div>
<a class="anchor" id="aa3055da45b5c778072dddd4071a03f1d"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::currentShadowColor" ref="aa3055da45b5c778072dddd4071a03f1d" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Color <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#aa3055da45b5c778072dddd4071a03f1d">com::mxgraph::mxGdiCanvas2D::currentShadowColor</a><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Holds the current parsed shadow color. This holds the result of parsing. </p>
<p>the currentShadowValue, which is an expensive operation. </p>
</div>
</div>
<a class="anchor" id="a3fc5d5d55bffc42a02714b23d46c4f18"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::currentShadowValue" ref="a3fc5d5d55bffc42a02714b23d46c4f18" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">string <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a3fc5d5d55bffc42a02714b23d46c4f18">com::mxgraph::mxGdiCanvas2D::currentShadowValue</a><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Holds the current value for the shadow color. This is used to hold the. </p>
<p>input value of a shadow operation. The parsing result of this value is cached in the global scope as it should be repeating. </p>
</div>
</div>
<a class="anchor" id="aee6c39db9b3b2a0de38834f3b269bfc3"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::graphics" ref="aee6c39db9b3b2a0de38834f3b269bfc3" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Graphics <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#aee6c39db9b3b2a0de38834f3b269bfc3">com::mxgraph::mxGdiCanvas2D::graphics</a><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Reference to the graphics instance for painting. </p>
</div>
</div>
<a class="anchor" id="a2f594bc974a37b0838751ae67f9ce8d1"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::lastPoint" ref="a2f594bc974a37b0838751ae67f9ce8d1" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a2f594bc974a37b0838751ae67f9ce8d1">com::mxgraph::mxGdiCanvas2D::lastPoint</a><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Holds the last point of a moveTo or lineTo operation to determine if the. </p>
<p>current path is orthogonal. </p>
</div>
</div>
<a class="anchor" id="abc5fcb884643bbea7bc7ef6234a37859"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::stack" ref="abc5fcb884643bbea7bc7ef6234a37859" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Stack&lt;<a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D_1_1CanvasState.html">CanvasState</a>&gt; <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#abc5fcb884643bbea7bc7ef6234a37859">com::mxgraph::mxGdiCanvas2D::stack</a> = new Stack&lt;<a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D_1_1CanvasState.html">CanvasState</a>&gt;()<code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Stack of states for save/restore. </p>
</div>
</div>
<a class="anchor" id="a303fe4863af0b0682531e41a0a86c2b2"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::state" ref="a303fe4863af0b0682531e41a0a86c2b2" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D_1_1CanvasState.html">CanvasState</a> <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html#a303fe4863af0b0682531e41a0a86c2b2">com::mxgraph::mxGdiCanvas2D::state</a> = new <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D_1_1CanvasState.html">CanvasState</a>()<code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Represents the current state of the canvas. </p>
</div>
</div>
<hr/><h2>Property Documentation</h2>
<a class="anchor" id="ad30fb99f1065da8fb956ceb519884381"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::Alpha" ref="ad30fb99f1065da8fb956ceb519884381" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double com::mxgraph::mxGdiCanvas2D::Alpha<code> [set]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the given alpha. </p>
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#a6e78d631c45ea341b6e82ae2d2ae747f">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="aa77ee2108750ef5c2e4e60306feb1a0d"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::Dashed" ref="aa77ee2108750ef5c2e4e60306feb1a0d" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool com::mxgraph::mxGdiCanvas2D::Dashed<code> [set]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Specifies if lines are dashed. </p>
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#aae8633458a4a93fb3bd354b130f0d4d7">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="a92aaa9ef4ad6f542db277e988bcc41b5"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::DashPattern" ref="a92aaa9ef4ad6f542db277e988bcc41b5" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">string com::mxgraph::mxGdiCanvas2D::DashPattern<code> [set]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the dashpattern. </p>
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#aadab1f5cdf6ddc97b6dc8da9224c9f3d">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="a192122f8dd7753b20c59cb33458c2e4b"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::FillColor" ref="a192122f8dd7753b20c59cb33458c2e4b" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">string com::mxgraph::mxGdiCanvas2D::FillColor<code> [set]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the given fillcolor. </p>
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#a4f488eea5fb315298333229d26b246cd">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="ac6f30b477f76d920c5597edd1d687e10"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::FontColor" ref="ac6f30b477f76d920c5597edd1d687e10" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">string com::mxgraph::mxGdiCanvas2D::FontColor<code> [set]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the fontcolor. </p>
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#a3aa4add33b9fcef3c6e81c20f76781ea">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="ae19b4bee4c6caca4f578037ba3d341d2"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::FontFamily" ref="ae19b4bee4c6caca4f578037ba3d341d2" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">string com::mxgraph::mxGdiCanvas2D::FontFamily<code> [set]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the font family. </p>
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#aae983110302f114c65645fadd6be63a9">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="ad71b4013cd083413c542e53818d32ef3"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::FontSize" ref="ad71b4013cd083413c542e53818d32ef3" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double com::mxgraph::mxGdiCanvas2D::FontSize<code> [set]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the fontsize. </p>
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#a69f663bd9c909c261b33d151574f7d55">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="a9e4c081acdb7fc0b363adbfa345f0671"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::FontStyle" ref="a9e4c081acdb7fc0b363adbfa345f0671" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int com::mxgraph::mxGdiCanvas2D::FontStyle<code> [set]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the given fontstyle. </p>
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#a709d43365adf4cb4c00726e83840a13d">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="aeb5e8e776beb7049c86cd225748033e4"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::LineCap" ref="aeb5e8e776beb7049c86cd225748033e4" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">string com::mxgraph::mxGdiCanvas2D::LineCap<code> [set]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the linecap. </p>
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#a829ab2cbd41e4777ea46657a6da7ffd9">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="aeb7383d17e4ae8c2d90798ae06a22c94"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::LineJoin" ref="aeb7383d17e4ae8c2d90798ae06a22c94" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">string com::mxgraph::mxGdiCanvas2D::LineJoin<code> [set]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the linejoin. </p>
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#add41832e54a6a952a9e9e7a344593acd">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="a9eb9a243faf69d55a94862f93f5aa985"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::MiterLimit" ref="a9eb9a243faf69d55a94862f93f5aa985" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double com::mxgraph::mxGdiCanvas2D::MiterLimit<code> [set]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the miterlimit. </p>
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#a991c36d1f078c3af31928fc485ef95e5">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="addc63fa18ad55a6d496137c52c2f6410"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::StrokeColor" ref="addc63fa18ad55a6d496137c52c2f6410" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">string com::mxgraph::mxGdiCanvas2D::StrokeColor<code> [set]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Caches color conversion as it is expensive. </p>
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#ae67622bf2792d623c672d4a8b57f86e2">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<a class="anchor" id="ac45d24fb89674db75ee34825bfe8739e"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas2D::StrokeWidth" ref="ac45d24fb89674db75ee34825bfe8739e" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double com::mxgraph::mxGdiCanvas2D::StrokeWidth<code> [set]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the strokewidth. </p>
<p>Implements <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html#a56b6cf5694eb108521750e4187415660">com::mxgraph::mxICanvas2D</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/canvas/mxGdiCanvas2D.cs</li>
</ul>
</div>
2012-10-29 20:17:12 +00:00
<hr class="footer"/><address style="text-align: right;"><small>Generated on Mon Oct 29 20:11:49 2012 for mxGraph by&nbsp;
2012-05-21 20:32:26 +00:00
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>