<!-- saved from url=(0026)http://www.naturaldocs.org -->
<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxImageExport"></a>mxImageExport</h1><divclass=CBody><p>Creates a new image export instance to be used with an export canvas. Here is an example that uses this class to create an image via a backend using <mxXmlExportCanvas>.</p><blockquote><preclass="prettyprint">var xmlDoc = mxUtils.createXmlDocument();
.simulate(document, '_blank');</pre></blockquote><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxImageExport">mxImageExport</a></td><tdclass=SDescription>Creates a new image export instance to be used with an export canvas. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxImageExport.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxImageExport.mxImageExport"id=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">mxImageExport</a></td><tdclass=SDescription>Constructs a new image export.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxImageExport.Variables">Variables</a></td><tdclass=SDescription></td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxImageExport.includeOverlays"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">includeOverlays</a></td><tdclass=SDescription>Specifies if overlays should be included in the export. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxImageExport.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxImageExport.drawState"id=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">drawState</a></td><tdclass=SDescription>Draws the given state and all its descendants to the given canvas.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxImageExport.drawState">drawState</a></td><tdclass=SDescription>Draws the given state and all its descendants to the given canvas.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxImageExport.drawShape">drawShape</a></td><tdclass=SDescription>Draws the given state to the given canvas.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxImageExport.drawOverlays"id=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">drawOverlays</a></td><tdclass=SDescription>Draws the overlays for the given state. </td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxImageExport.mxImageExport"></a>mxImageExport</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>function mxImageExport()</td></tr></table></blockquote><p>Constructs a new image export.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxImageExport.includeOverlays"></a>includeOverlays</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxImageExport.prototype.includeOverlays</td></tr></table></blockquote><p>Specifies if overlays should be included in the export. Default is false.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxImageExport.drawState"></a>drawState</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxImageExport.prototype.drawState = function(</td><tdclass=PParameternowrap>state,</td></tr><tr><td></td><tdclass=PParameternowrap>canvas</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws the given state and all its descendants to the given canvas.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxImageExport.drawState"></a>drawState</h3><divclass=CBody><p>Draws the given state and all its descendants to the given canvas.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxImageExport.drawShape"></a>drawShape</h3><divclass=CBody><p>Draws the given state to the given canvas.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxImageExport.drawOverlays"></a>drawOverlays</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxImageExport.prototype.drawOverlays = function(</td><tdclass=PParameternowrap>state,</td></tr><tr><td></td><tdclass=PParameternowrap>canvas</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws the overlays for the given state. This is called if <ahref="#mxImageExport.includeOverlays"class=LVariableid=link5onMouseOver="ShowTip(event, 'tt2', 'link5')"onMouseOut="HideTip('tt2')">includeOverlays</a> is true.</p></div></div></div>
<divclass=CToolTipid="tt1"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>function mxImageExport()</td></tr></table></blockquote>Constructs a new image export.</div></div><divclass=CToolTipid="tt2"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxImageExport.prototype.includeOverlays</td></tr></table></blockquote>Specifies if overlays should be included in the export. </div></div><divclass=CToolTipid="tt3"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxImageExport.prototype.drawState = function(</td><tdclass=PParameternowrap>state,</td></tr><tr><td></td><tdclass=PParameternowrap>canvas</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Draws the given state and all its descendants to the given canvas.</div></div><divclass=CToolTipid="tt4"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxImageExport.prototype.drawOverlays = function(</td><tdclass=PParameternowrap>state,</td></tr><tr><td></td><tdclass=PParameternowrap>canvas</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Draws the overlays for the given state. </div></div><!--END_ND_TOOLTIPS-->