<!-- saved from url=(0026)http://www.naturaldocs.org -->
<divid=Content><divclass="CFile"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxGdCanvas.php"></a>mxGdCanvas.php</h1><divclass=CBody><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxGdCanvas.php">mxGdCanvas.php</a></td><tdclass=SDescription></td></tr><trclass="SGroup"><tdclass=SEntry><ahref="#Variables">Variables</a></td><tdclass=SDescription></td></tr><trclass="SVariable SIndent1 SMarked"><tdclass=SEntry><ahref="#antialias">antialias</a></td><tdclass=SDescription>Specifies if image aspect should be preserved in drawImage. </td></tr><trclass="SClass"><tdclass=SEntry><ahref="#mxGdCanvas">mxGdCanvas</a></td><tdclass=SDescription>Canvas for drawing graphs using the GD library. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxGdCanvas.Variables">Variables</a></td><tdclass=SDescription></td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxGdCanvas.antialias"id=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">antialias</a></td><tdclass=SDescription>Specifies if antialiasing should be enabled. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxGdCanvas.enableTtf"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">enableTtf</a></td><tdclass=SDescription>Specifies if truetype fonts are enabled if available. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxGdCanvas.shadowColor"id=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">shadowColor</a></td><tdclass=SDescription>Holds the color object for the shadow color defined in <ahref="../util/mxConstants-php.html#mxConstants.W3C_SHADOWCOLOR"class=LVariableid=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">mxConstants.W3C_SHADOWCOLOR</a>.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxGdCanvas.imageCache"id=link5onMouseOver="ShowTip(event, 'tt5', 'link5')"onMouseOut="HideTip('tt5')">imageCache</a></td><tdclass=SDescription>Holds the image cache.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxGdCanvas.image"id=link6onMouseOver="ShowTip(event, 'tt6', 'link6')"onMouseOut="HideTip('tt6')">image</a></td><tdclass=SDescription>Holds the image.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxGdCanvas.height">height</a></td><tdclass=SDescription>Holds the height.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxGdCanvas.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxGdCanvas.mxGdCanvas"id=link7onMouseOver="ShowTip(event, 'tt7', 'link7')"onMouseOut="HideTip('tt7')">mxGdCanvas</a></td><tdclass=SDescription>Constructs a new GD canvas. </td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxGdCanvas.loadImage"id=link8onMouseOver="ShowTip(event, 'tt8', 'link8')"onMouseOut="HideTip('tt8')">loadImage</a></td><tdclass=SDescription>Returns an image instance for the given URL. </td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxGdCanvas.drawCell"id=link9onMouseOver="ShowTip(event, 'tt9', 'link9')"onMouseOut="HideTip('tt9')">drawCell</a></td><tdclass=SDescription>Draws the given cell state.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxGdCanvas.drawLabel"id=link10onMouseOver="ShowTip(event, 'tt10', 'link10')"onMouseOut="HideTip('tt10')">drawLabel</a></td><tdclass=SDescription>Draws the given label.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxGdCanvas.drawMarker"id=link11onMouseOver="ShowTip(event, 'tt11', 'link11')"onMouseOut="HideTip('tt11')">drawMarker</a></td><tdclass=SDescription>Draws the specified marker.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxGdCanvas.getImage"id=link12onMouseOv
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="antialias"></a>antialias</h3><divclass=CBody><p>Specifies if image aspect should be preserved in drawImage. Default is true.</p></div></div></div>
<divclass="CClass"><divclass=CTopic><h2class=CTitle><aname="mxGdCanvas"></a>mxGdCanvas</h2><divclass=CBody><p>Canvas for drawing graphs using the GD library. This class requires GD support (GDLib). Note that rounded corners, gradients and word wrapping are not supported by GD.</p><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SGroup"><tdclass=SEntry><ahref="#mxGdCanvas.Variables">Variables</a></td><tdclass=SDescription></td></tr><trclass="SVariable SIndent1 SMarked"><tdclass=SEntry><ahref="#mxGdCanvas.antialias"id=link37onMouseOver="ShowTip(event, 'tt1', 'link37')"onMouseOut="HideTip('tt1')">antialias</a></td><tdclass=SDescription>Specifies if antialiasing should be enabled. </td></tr><trclass="SVariable SIndent1"><tdclass=SEntry><ahref="#mxGdCanvas.enableTtf"id=link38onMouseOver="ShowTip(event, 'tt2', 'link38')"onMouseOut="HideTip('tt2')">enableTtf</a></td><tdclass=SDescription>Specifies if truetype fonts are enabled if available. </td></tr><trclass="SVariable SIndent1 SMarked"><tdclass=SEntry><ahref="#mxGdCanvas.shadowColor"id=link39onMouseOver="ShowTip(event, 'tt3', 'link39')"onMouseOut="HideTip('tt3')">shadowColor</a></td><tdclass=SDescription>Holds the color object for the shadow color defined in <ahref="../util/mxConstants-php.html#mxConstants.W3C_SHADOWCOLOR"class=LVariableid=link40onMouseOver="ShowTip(event, 'tt4', 'link40')"onMouseOut="HideTip('tt4')">mxConstants.W3C_SHADOWCOLOR</a>.</td></tr><trclass="SVariable SIndent1"><tdclass=SEntry><ahref="#mxGdCanvas.imageCache"id=link41onMouseOver="ShowTip(event, 'tt5', 'link41')"onMouseOut="HideTip('tt5')">imageCache</a></td><tdclass=SDescription>Holds the image cache.</td></tr><trclass="SVariable SIndent1 SMarked"><tdclass=SEntry><ahref="#mxGdCanvas.image"id=link42onMouseOver="ShowTip(event, 'tt6', 'link42')"onMouseOut="HideTip('tt6')">image</a></td><tdclass=SDescription>Holds the image.</td></tr><trclass="SVariable SIndent1"><tdclass=SEntry><ahref="#mxGdCanvas.height">height</a></td><tdclass=SDescription>Holds the height.</td></tr><trclass="SGroup"><tdclass=SEntry><ahref="#mxGdCanvas.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent1 SMarked"><tdclass=SEntry><ahref="#mxGdCanvas.mxGdCanvas"id=link43onMouseOver="ShowTip(event, 'tt7', 'link43')"onMouseOut="HideTip('tt7')">mxGdCanvas</a></td><tdclass=SDescription>Constructs a new GD canvas. </td></tr><trclass="SFunction SIndent1"><tdclass=SEntry><ahref="#mxGdCanvas.loadImage"id=link44onMouseOver="ShowTip(event, 'tt8', 'link44')"onMouseOut="HideTip('tt8')">loadImage</a></td><tdclass=SDescription>Returns an image instance for the given URL. </td></tr><trclass="SFunction SIndent1 SMarked"><tdclass=SEntry><ahref="#mxGdCanvas.drawCell"id=link45onMouseOver="ShowTip(event, 'tt9', 'link45')"onMouseOut="HideTip('tt9')">drawCell</a></td><tdclass=SDescription>Draws the given cell state.</td></tr><trclass="SFunction SIndent1"><tdclass=SEntry><ahref="#mxGdCanvas.drawLabel"id=link46onMouseOver="ShowTip(event, 'tt10', 'link46')"onMouseOut="HideTip('tt10')">drawLabel</a></td><tdclass=SDescription>Draws the given label.</td></tr><trclass="SFunction SIndent1 SMarked"><tdclass=SEntry><ahref="#mxGdCanvas.drawMarker"id=link47onMouseOver="ShowTip(event, 'tt11', 'link47')"onMouseOut="HideTip('tt11')">drawMarker</a></td><tdclass=SDescription>Draws the specified marker.</td></tr><trclass="SFunction SIndent1"><tdclass=SEntry><ahref="#mxGdCanvas.getImage"id=link48onMouseOver="ShowTip(event, 'tt12', 'link48')"onMouseOut="HideTip('tt12')">getImage</a></td><tdclass=SDescription>Returns an image that represents this canvas.</td></tr><trclass="SFunction SIndent1 SMarked"><tdclass=SEntry><ahref="#mxGdCanvas.setImage"id=link49onMouseOver="ShowTip(event, 'tt13', 'link49')"onMouseOut="HideTip('tt13')">setImage</a></td><tdclass=SDescription>Sets the image that represents the canvas.</td></t
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.antialias"></a>antialias</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $antialias</td></tr></table></blockquote><p>Specifies if antialiasing should be enabled. Default is false. NOTE: GD has a known bug where strokeWidths are ignored if this is enabled.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.enableTtf"></a>enableTtf</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $enableTtf</td></tr></table></blockquote><p>Specifies if truetype fonts are enabled if available. Default is <ahref="../util/mxConstants-php.html#mxConstants.TTF_ENABLED"class=LVariableid=link73onMouseOver="ShowTip(event, 'tt37', 'link73')"onMouseOut="HideTip('tt37')">mxConstants.TTF_ENABLED</a>.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.shadowColor"></a>shadowColor</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $shadowColor</td></tr></table></blockquote><p>Holds the color object for the shadow color defined in <ahref="../util/mxConstants-php.html#mxConstants.W3C_SHADOWCOLOR"class=LVariableid=link74onMouseOver="ShowTip(event, 'tt4', 'link74')"onMouseOut="HideTip('tt4')">mxConstants.W3C_SHADOWCOLOR</a>.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.imageCache"></a>imageCache</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $imageCache</td></tr></table></blockquote><p>Holds the image cache.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.image"></a>image</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $image</td></tr></table></blockquote><p>Holds the image.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.height"></a>height</h3><divclass=CBody><p>Holds the height.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.mxGdCanvas"></a>mxGdCanvas</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function mxGdCanvas(</td><tdclass=PParameternowrap>$width</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> 0,</td></tr><tr><td></td><tdclass=PParameternowrap>$height</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> 0,</td></tr><tr><td></td><tdclass=PParameternowrap>$scale</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> 1,</td></tr><tr><td></td><tdclass=PParameternowrap>$background</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$imageBasePath</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%>""</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Constructs a new GD canvas. Use a HTML color definition for the optional background parameter, eg. white or #FFFFFF. The buffered <ahref="#mxGdCanvas.image"class=LVariableid=link75onMouseOver="ShowTip(event, 'tt6', 'link75')"onMouseOut="HideTip('tt6')">image</a> is only created if the given width and height are greater than 0.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.loadImage"></a>loadImage</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function loadImage(</td><tdclass=PParameternowrap>$image</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns an image instance for the given URL. If the URL has been loaded before than an instance of the same instance is returned as in the previous call.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.drawCell"></a>drawCell</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function drawCell(</td><tdclass=PParameternowrap>$state</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws the given cell state.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.drawLabel"></a>drawLabel</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function drawLabel(</td><tdclass=PParameternowrap>$text,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$state,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$html</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> false</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws the given label.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.drawMarker"></a>drawMarker</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function drawMarker(</td><tdclass=PParameternowrap>$type,</td></tr><tr><td></td><tdclass=PParameternowrap>$p0,</td></tr><tr><td></td><tdclass=PParameternowrap>$pe,</td></tr><tr><td></td><tdclass=PParameternowrap>$size,</td></tr><tr><td></td><tdclass=PParameternowrap>$stroke</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws the specified marker.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.getImage"></a>getImage</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>function getImage()</td></tr></table></blockquote><p>Returns an image that represents this canvas.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.setImage"></a>setImage</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function setImage(</td><tdclass=PParameternowrap>$img</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the image that represents the canvas.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.getImageForStyle"></a>getImageForStyle</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function getImageForStyle(</td><tdclass=PParameternowrap>$style</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns an image that represents this canvas.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.drawLine"></a>drawLine</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function drawLine(</td><tdclass=PParameternowrap>$x0,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$y0,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$x1,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$y1,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$stroke</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$dashed</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> false</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws the given line.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.drawShape"></a>drawShape</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function drawShape(</td><tdclass=PParameternowrap>$x,</td></tr><tr><td></td><tdclass=PParameternowrap>$y,</td></tr><tr><td></td><tdclass=PParameternowrap>$w,</td></tr><tr><td></td><tdclass=PParameternowrap>$h,</td></tr><tr><td></td><tdclass=PParameternowrap>$style</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws the given shape.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.drawPolygon"></a>drawPolygon</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function drawPolygon(</td><tdclass=PParameternowrap>$points,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$fill</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$stroke</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$shadow</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> false</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws the given polygon.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.drawRect"></a>drawRect</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function drawRect(</td><tdclass=PParameternowrap>$x,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$y,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$w,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$h,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$fill</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$stroke</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$shadow</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> false,</td></tr><tr><td></td><tdclass=PParameternowrap>$rounded</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> false,</td></tr><tr><td></td><tdclass=PParameternowrap>$dashed</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> false</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws then given rectangle. Rounded is currently ignored.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.drawOval"></a>drawOval</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function drawOval(</td><tdclass=PParameternowrap>$x,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$y,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$w,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$h,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$fill</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$stroke</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$shadow</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> false</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws then given ellipse.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.drawRhombus"></a>drawRhombus</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function drawRhombus(</td><tdclass=PParameternowrap>$x,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$y,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$w,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$h,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$fill</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$stroke</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$shadow</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> false</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws then given rhombus.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.drawTriangle"></a>drawTriangle</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function drawTriangle(</td><tdclass=PParameternowrap>$x,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$y,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$w,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$h,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$fill</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$stroke</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$shadow</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> false,</td></tr><tr><td></td><tdclass=PParameternowrap>$direction</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws then given triangle.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.drawHexagon"></a>drawHexagon</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function drawHexagon(</td><tdclass=PParameternowrap>$x,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$y,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$w,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$h,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$fill</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$stroke</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$shadow</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> false,</td></tr><tr><td></td><tdclass=PParameternowrap>$direction</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws then given haxagon.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.drawCylinder"></a>drawCylinder</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function drawCylinder(</td><tdclass=PParameternowrap>$x,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$y,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$w,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$h,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$fill</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$stroke</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$shadow</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> false</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws then given cylinder.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.drawCloud"></a>drawCloud</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function drawCloud(</td><tdclass=PParameternowrap>$x,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$y,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$w,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$h,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$fill</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$stroke</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$shadow</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%>false</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws then given cloud.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.drawActor"></a>drawActor</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function drawActor(</td><tdclass=PParameternowrap>$x,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$y,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$w,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$h,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$fill</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$stroke</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$shadow</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%>false</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws then given cloud.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.drawImage"></a>drawImage</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function drawImage(</td><tdclass=PParameternowrap>$x,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$y,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$w,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$h,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$image,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$aspect</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> true,</td></tr><tr><td></td><tdclass=PParameternowrap>$flipH</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> false,</td></tr><tr><td></td><tdclass=PParameternowrap>$flipV</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> false</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws a given image.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.getTrueTypeFont"></a>getTrueTypeFont</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function getTrueTypeFont(</td><tdclass=PParameternowrap>$style</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the truetype font to be used to draw the text with the given style.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.getTrueTypeFontSize"></a>getTrueTypeFontSize</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function getTrueTypeFontSize(</td><tdclass=PParameternowrap>$style</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the truetype font size to be used to draw the text with the given style. This returns the fontSize in the style of the default fontsize multiplied with <ttfSizeFactor>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.drawTtxTextLine"></a>drawTtxTextLine</h3><divclass=CBody><p>Draws a single line of the given true type font text. The w and h are the width and height of the complete text box that contains this line.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.getFixedFontSize"></a>getFixedFontSize</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function getFixedFontSize(</td><tdclass=PParameternowrap>$fontSize,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$fontFamily,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$fontStyle</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%>null</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the fixed font size for GD (1 t0 5) for the given font properties</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.drawFixedTextLine"></a>drawFixedTextLine</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function drawFixedTextLine(</td><tdclass=PParameternowrap>$text,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$font,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$left,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$top,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$color,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$horizontal</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> true</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws the given fixed text line.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.getColor"></a>getColor</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function getColor(</td><tdclass=PParameternowrap>$hex,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$default</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Allocates the given color and returns a reference to it. Supported color names are black, red, green, blue, orange, yellow, pink, turqoise, white, gray and any hex codes between 000000 and FFFFFF.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.offset"></a>offset</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function offset(</td><tdclass=PParameternowrap>$points,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$dx</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$dy</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Creates a new array of x, y sequences where the each coordinate is translated by dx and dy, respectively.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.destroy"></a>destroy</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>function destroy()</td></tr></table></blockquote><p>Destroys all allocated resources.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGdCanvas.drawGraph"></a>drawGraph</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>public static function drawGraph(</td><tdclass=PParameternowrap>$graph,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$clip</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$bg</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws the given graph using this canvas.</p></div></div></div>
</div><!--Content-->
<divid=Footer><ahref="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
<divclass=CToolTipid="tt1"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $antialias</td></tr></table></blockquote>Specifies if antialiasing should be enabled. </div></div><divclass=CToolTipid="tt2"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $enableTtf</td></tr></table></blockquote>Specifies if truetype fonts are enabled if available. </div></div><divclass=CToolTipid="tt3"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $shadowColor</td></tr></table></blockquote>Holds the color object for the shadow color defined in mxConstants.W3C_SHADOWCOLOR.</div></div><divclass=CToolTipid="tt4"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>public static $W3C_SHADOWCOLOR</td></tr></table></blockquote>Defines the color to be used to draw shadows in DOM documents.</div></div><divclass=CToolTipid="tt5"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $imageCache</td></tr></table></blockquote>Holds the image cache.</div></div><divclass=CToolTipid="tt6"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $image</td></tr></table></blockquote>Holds the image.</div></div><divclass=CToolTipid="tt7"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function mxGdCanvas(</td><tdclass=PParameternowrap>$width</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> 0,</td></tr><tr><td></td><tdclass=PParameternowrap>$height</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> 0,</td></tr><tr><td></td><tdclass=PParameternowrap>$scale</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> 1,</td></tr><tr><td></td><tdclass=PParameternowrap>$background</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$imageBasePath</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%>""</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Constructs a new GD canvas. </div></div><divclass=CToolTipid="tt8"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function loadImage(</td><tdclass=PParameternowrap>$image</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Returns an image instance for the given URL. </div></div><divclass=CToolTipid="tt9"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function drawCell(</td><tdclass=PParameternowrap>$state</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Draws the given cell state.</div></div><divclass=CToolTipid="tt10"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function drawLabel(</td><tdclass=PParameternowrap>$text,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$state,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$html</td><tdclass=PDefaultValuePrefix> = </