Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > b3a1f4d91c26f535919e39e25606614a > files > 2005

wt-doc-3.2.3-1.fc18.noarch.rpm

<!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>Wt: Wt::WRasterImage Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Wt
   &#160;<span id="projectnumber">3.2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceWt.html">Wt</a>      </li>
      <li class="navelem"><a class="el" href="classWt_1_1WRasterImage.html">WRasterImage</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Wt::WRasterImage Class Reference<div class="ingroups"><a class="el" href="group__painting.html">Painting system</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Wt::WRasterImage" --><!-- doxytag: inherits="Wt::WResource,Wt::WPaintDevice" -->
<p>A paint device for rendering to a raster image.  
 <a href="classWt_1_1WRasterImage.html#details">More...</a></p>

<p><code>#include &lt;Wt/WRasterImage&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Wt::WRasterImage:</div>
<div class="dyncontent">
<div class="center"><img src="classWt_1_1WRasterImage__inherit__graph.png" border="0" usemap="#Wt_1_1WRasterImage_inherit__map" alt="Inheritance graph"/></div>
<map name="Wt_1_1WRasterImage_inherit__map" id="Wt_1_1WRasterImage_inherit__map">
<area shape="rect" href="classWt_1_1WResource.html" title="An object which can be rendered in the HTTP protocol." alt="" coords="5,80,120,107"/><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="15,5,111,32"/><area shape="rect" href="classWt_1_1WPaintDevice.html" title="The abstract base class for a paint device." alt="" coords="144,80,272,107"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classWt_1_1WRasterImage-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRasterImage.html#a5849a1646b9739c75e01d3bdb17b7773">WRasterImage</a> (const std::string &amp;type, const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;width, const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;height, <a class="el" href="classWt_1_1WObject.html">WObject</a> *parent=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a raster image.  <a href="#a5849a1646b9739c75e01d3bdb17b7773"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a660f5904f28a7f10861afa014e8df882"></a><!-- doxytag: member="Wt::WRasterImage::~WRasterImage" ref="a660f5904f28a7f10861afa014e8df882" args="()" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRasterImage.html#a660f5904f28a7f10861afa014e8df882">~WRasterImage</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRasterImage.html#a227a9c6f057fb6335fa305a6f8510c55">addFontCollection</a> (const std::string &amp;directory, bool recursive=true)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a font collection.  <a href="#a227a9c6f057fb6335fa305a6f8510c55"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a45ce6c4404782ecfa84839c0d92ac145"></a><!-- doxytag: member="Wt::WRasterImage::features" ref="a45ce6c4404782ecfa84839c0d92ac145" args="() const " -->
virtual WFlags&lt; <a class="el" href="classWt_1_1WPaintDevice.html#a03b5b2abb109568cc60b2d6ec595ad0b">FeatureFlag</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRasterImage.html#a45ce6c4404782ecfa84839c0d92ac145">features</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns device features. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRasterImage.html#a7d61c2108242fc61ecdc14c42a50443f">setChanged</a> (WFlags&lt; <a class="el" href="classWt_1_1WPaintDevice.html#a1a2feafa01212eba9ad6c7b484ad8da1">ChangeFlag</a> &gt; flags)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Indicates changes in painter state.  <a href="#a7d61c2108242fc61ecdc14c42a50443f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRasterImage.html#af3663ee7373f3be11fdcb5a991bfdad8">drawArc</a> (const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;rect, double startAngle, double spanAngle)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws an arc.  <a href="#af3663ee7373f3be11fdcb5a991bfdad8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRasterImage.html#a4d87e6c8d6132a9b4a077d171b8bdeb4">drawImage</a> (const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;rect, const std::string &amp;imgUri, int imgWidth, int imgHeight, const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;sourceRect)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws an image.  <a href="#a4d87e6c8d6132a9b4a077d171b8bdeb4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRasterImage.html#a6ae45a8f4d44be9d935a9ae4b9c7ec3a">drawLine</a> (double x1, double y1, double x2, double y2)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a line.  <a href="#a6ae45a8f4d44be9d935a9ae4b9c7ec3a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRasterImage.html#ad90e19e0dd8ead44c0a43c136b8b5a47">drawPath</a> (const <a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> &amp;path)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a path.  <a href="#ad90e19e0dd8ead44c0a43c136b8b5a47"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRasterImage.html#ad4f444094781864473dcc1c8fe1970c7">drawText</a> (const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;rect, WFlags&lt; <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt; alignmentFlags, <a class="el" href="namespaceWt.html#a3bf85f6b385349dadfa7e205a39ec419">TextFlag</a> textFlag, const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;text)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws text.  <a href="#ad4f444094781864473dcc1c8fe1970c7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classWt_1_1WTextItem.html">WTextItem</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRasterImage.html#ad4255009a186572744ee9ac9a5fba1c2">measureText</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;text, double maxWidth=-1, bool wordWrap=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Measures rendered text size.  <a href="#ad4255009a186572744ee9ac9a5fba1c2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classWt_1_1WFontMetrics.html">WFontMetrics</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRasterImage.html#a283cc4dc160b404c051e48e2b8c89f2b">fontMetrics</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns font metrics.  <a href="#a283cc4dc160b404c051e48e2b8c89f2b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRasterImage.html#a8b04b69af81e9f8e6294ac52612aa2e0">init</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the device for painting.  <a href="#a8b04b69af81e9f8e6294ac52612aa2e0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRasterImage.html#a9b460b1dbf35675a4a43c377682f4989">done</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Finishes painting on the device.  <a href="#a9b460b1dbf35675a4a43c377682f4989"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRasterImage.html#acf75d51af5965dfa9f06c8bdab084c5a">paintActive</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether painting is active.  <a href="#acf75d51af5965dfa9f06c8bdab084c5a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classWt_1_1WLength.html">WLength</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRasterImage.html#a007f7f513d23ffe9c24947462780dcc5">width</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the device width.  <a href="#a007f7f513d23ffe9c24947462780dcc5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classWt_1_1WLength.html">WLength</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRasterImage.html#aa04944c08a0995ff2eaa42c5bd431de6">height</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the device height.  <a href="#aa04944c08a0995ff2eaa42c5bd431de6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRasterImage.html#a636543ffb0fffeb7a9e0dd8a166d3167">handleRequest</a> (const <a class="el" href="classWt_1_1Http_1_1Request.html">Http::Request</a> &amp;request, <a class="el" href="classWt_1_1Http_1_1Response.html">Http::Response</a> &amp;response)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Handles a request.  <a href="#a636543ffb0fffeb7a9e0dd8a166d3167"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRasterImage.html#a96888a696b1f98c2d36fda556595ab08">setPixel</a> (int x, int y, const <a class="el" href="classWt_1_1WColor.html">WColor</a> &amp;color)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Low-level paint method.  <a href="#a96888a696b1f98c2d36fda556595ab08"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WColor.html">WColor</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRasterImage.html#a4ef7d7a0684af480a2a61881d7240da2">getPixel</a> (int x, int y)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Low-level paint method.  <a href="#a4ef7d7a0684af480a2a61881d7240da2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRasterImage.html#af4e9da55569320bdc3168749ba66d3c0">clear</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the image.  <a href="#af4e9da55569320bdc3168749ba66d3c0"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classWt_1_1WPainter.html">WPainter</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRasterImage.html#a626f46e6b7cac223224c72bf3684b61d">painter</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the painter that is currently painting on the device.  <a href="#a626f46e6b7cac223224c72bf3684b61d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1e6ce062a5b45b1bb7d8c65d17c1315d"></a><!-- doxytag: member="Wt::WRasterImage::setPainter" ref="a1e6ce062a5b45b1bb7d8c65d17c1315d" args="(WPainter *painter)" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRasterImage.html#a1e6ce062a5b45b1bb7d8c65d17c1315d">setPainter</a> (<a class="el" href="classWt_1_1WPainter.html">WPainter</a> *painter)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the painter. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A paint device for rendering to a raster image. </p>
<p>A WRasterImage paint device provides support for creating raster images (such as PNG or GIF images).</p>
<p>It implements two main use-cases:</p>
<ul>
<li>When used either in conjunction with a <a class="el" href="classWt_1_1WPainter.html" title="Vector graphics painting class.">WPainter</a>, it supports vector graphics operations, and can be used to make a PNG or GIF version of a WPaintedWidget's contents.</li>
</ul>
<ul>
<li>It also provides a low-level API to color individual pixels using <a class="el" href="classWt_1_1WRasterImage.html#a96888a696b1f98c2d36fda556595ab08" title="Low-level paint method.">setPixel()</a>, which directly sets the raster pixels.</li>
</ul>
<p>The rendering is provided by <a href="http://www.graphicsmagick.org/">GraphicsMagick</a>, and this class is included in the library only if <code>libgraphicsmagick</code> was found during the build of the library. If Wt is built to use <code>libpango</code> for font support, then text rendering is done using this library. Otherwise, you may want to configure TrueType font search directories using <a class="el" href="classWt_1_1WRasterImage.html#a227a9c6f057fb6335fa305a6f8510c55" title="Adds a font collection.">addFontCollection()</a>.</p>
<p>You can use the image as a resource and specialize <a class="el" href="classWt_1_1WRasterImage.html#a636543ffb0fffeb7a9e0dd8a166d3167" title="Handles a request.">handleRequest()</a> to paint the contents on the fly. Alternatively can also use <a class="el" href="classWt_1_1WResource.html#ad8bbe65a888cc43e0d356f18509b9a0f" title="Stream the resource to a stream.">write()</a> to serialize to an image file (std::ostream).</p>
<p>The latter usage is illustrated by the code below: </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classWt_1_1Chart_1_1WCartesianChart.html" title="A cartesian chart.">Wt::Chart::WCartesianChart</a> *chart = ...

 <a class="code" href="classWt_1_1WRasterImage.html" title="A paint device for rendering to a raster image.">Wt::WRasterImage</a> pngImage(<span class="stringliteral">&quot;png&quot;</span>, 600, 400);
 {
   <a class="code" href="classWt_1_1WPainter.html" title="Vector graphics painting class.">Wt::WPainter</a> p(&amp;pngImage);
   chart-&gt;<a class="code" href="classWt_1_1Chart_1_1WCartesianChart.html#a6fb2219936b721b8829dc7093dcb5c16" title="Paint the chart in a rectangle of the given painter.">paint</a>(p);
 }
 std::ofstream f(<span class="stringliteral">&quot;chart.png&quot;</span>, std::ios::out | std::ios::binary);
 pngImage.write(f);
</pre></div><p>This paint device has the following limitations:</p>
<ul>
<li>drop shadows are (not yet?) supported. </li>
</ul>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a5849a1646b9739c75e01d3bdb17b7773"></a><!-- doxytag: member="Wt::WRasterImage::WRasterImage" ref="a5849a1646b9739c75e01d3bdb17b7773" args="(const std::string &amp;type, const WLength &amp;width, const WLength &amp;height, WObject *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::WRasterImage::WRasterImage </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classWt_1_1WObject.html">WObject</a> *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a raster image. </p>
<p><code>type</code> indicates an image type. The mime type of the resource is <code>"image/"</code> <code>type</code>.</p>
<p>Wt supports the following image types (amongst others):</p>
<ul>
<li>png: Portable Network Graphics</li>
<li>gif: Graphics Interchange Format</li>
<li>bmp: Microsoft windows bitmap</li>
<li>jpeg: Joint Photographic Experts Group JFIF format </li>
</ul>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a227a9c6f057fb6335fa305a6f8510c55"></a><!-- doxytag: member="Wt::WRasterImage::addFontCollection" ref="a227a9c6f057fb6335fa305a6f8510c55" args="(const std::string &amp;directory, bool recursive=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WRasterImage::addFontCollection </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>directory</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>recursive</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds a font collection. </p>
<p>If Wt has been configured to use <code>libpango</code>, then font matching and character selection is done by libpango, which is seeded with information on installed fonts by fontconfig. In that case, invocations for this method is ignored.</p>
<p>If Wt has not been configured to use <code>libpango</code>, then this method may be used to indicate the location of true type fonts. The main drawback compared to libpango is that font selection is not steered by the need for particular characters, i.e. font selection is independent from the text's need for specific characters. Most truetype fonts provided only partial unicode support. The provided <code>directory</code> will be searched for fonts (currently only TrueType ".ttf" or ".ttc" fonts). </p>

</div>
</div>
<a class="anchor" id="af4e9da55569320bdc3168749ba66d3c0"></a><!-- doxytag: member="Wt::WRasterImage::clear" ref="af4e9da55569320bdc3168749ba66d3c0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WRasterImage::clear </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Clears the image. </p>
<p>Fills the image with a white background. </p>

</div>
</div>
<a class="anchor" id="a9b460b1dbf35675a4a43c377682f4989"></a><!-- doxytag: member="Wt::WRasterImage::done" ref="a9b460b1dbf35675a4a43c377682f4989" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WRasterImage::done </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Finishes painting on the device. </p>
<p>This method is called when a <a class="el" href="classWt_1_1WPainter.html" title="Vector graphics painting class.">WPainter</a> stopped painting.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a50beb0c8cb77c12e2dee807e4fe4bcb4" title="Ends painting.">WPainter::end()</a> </dd></dl>

<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#a75827be2076716985533dbc75dfdc512">Wt::WPaintDevice</a>.</p>

</div>
</div>
<a class="anchor" id="af3663ee7373f3be11fdcb5a991bfdad8"></a><!-- doxytag: member="Wt::WRasterImage::drawArc" ref="af3663ee7373f3be11fdcb5a991bfdad8" args="(const WRectF &amp;rect, double startAngle, double spanAngle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WRasterImage::drawArc </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;&#160;</td>
          <td class="paramname"><em>rect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>startAngle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>spanAngle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws an arc. </p>
<p>The arc is defined as in <a class="el" href="classWt_1_1WPainter.html#aa79220ed9456f67a393009e5c5eea27e" title="Draws an arc.">WPainter::drawArc(const WRectF&amp; rectangle, int startAngle, int spanAngle)</a></p>
<p>The arc must be stroked, filled, and transformed using the current painter settings. </p>

<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#a605316797b1aa4be60c24d95fc5a1ab4">Wt::WPaintDevice</a>.</p>

</div>
</div>
<a class="anchor" id="a4d87e6c8d6132a9b4a077d171b8bdeb4"></a><!-- doxytag: member="Wt::WRasterImage::drawImage" ref="a4d87e6c8d6132a9b4a077d171b8bdeb4" args="(const WRectF &amp;rect, const std::string &amp;imgUri, int imgWidth, int imgHeight, const WRectF &amp;sourceRect)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WRasterImage::drawImage </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;&#160;</td>
          <td class="paramname"><em>rect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>imageUri</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>imgWidth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>imgHeight</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;&#160;</td>
          <td class="paramname"><em>sourceRect</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws an image. </p>
<p>Draws <em>sourceRect</em> from the image with URL <code>imageUri</code> and original dimensions <em>imgWidth</em> and <code>imgHeight</code> to the location, into the rectangle defined by <code>rect</code>.</p>
<p>The image is transformed using the current painter settings. </p>

<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#af92ff3c6d2f5c351c6931306d9cc1162">Wt::WPaintDevice</a>.</p>

</div>
</div>
<a class="anchor" id="a6ae45a8f4d44be9d935a9ae4b9c7ec3a"></a><!-- doxytag: member="Wt::WRasterImage::drawLine" ref="a6ae45a8f4d44be9d935a9ae4b9c7ec3a" args="(double x1, double y1, double x2, double y2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WRasterImage::drawLine </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws a line. </p>
<p>The line must be stroked and transformed using the current painter settings. </p>

<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#abd267ca3adb6c394079042810864ac9a">Wt::WPaintDevice</a>.</p>

</div>
</div>
<a class="anchor" id="ad90e19e0dd8ead44c0a43c136b8b5a47"></a><!-- doxytag: member="Wt::WRasterImage::drawPath" ref="ad90e19e0dd8ead44c0a43c136b8b5a47" args="(const WPainterPath &amp;path)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WRasterImage::drawPath </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> &amp;&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws a path. </p>
<p>The path must be stroked, filled, and transformed using the current painter settings. </p>

<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#ab3c368b79fef8bc53681821610dd2077">Wt::WPaintDevice</a>.</p>

</div>
</div>
<a class="anchor" id="ad4f444094781864473dcc1c8fe1970c7"></a><!-- doxytag: member="Wt::WRasterImage::drawText" ref="ad4f444094781864473dcc1c8fe1970c7" args="(const WRectF &amp;rect, WFlags&lt; AlignmentFlag &gt; alignmentFlags, TextFlag textFlag, const WString &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WRasterImage::drawText </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;&#160;</td>
          <td class="paramname"><em>rect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">WFlags&lt; <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt;&#160;</td>
          <td class="paramname"><em>alignmentFlags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceWt.html#a3bf85f6b385349dadfa7e205a39ec419">TextFlag</a>&#160;</td>
          <td class="paramname"><em>textFlag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws text. </p>
<p>The text must be rendered, stroked and transformed using the current painter settings. </p>

<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#adfcb1566a4c765d0ff1575cc3f6be31d">Wt::WPaintDevice</a>.</p>

</div>
</div>
<a class="anchor" id="a283cc4dc160b404c051e48e2b8c89f2b"></a><!-- doxytag: member="Wt::WRasterImage::fontMetrics" ref="a283cc4dc160b404c051e48e2b8c89f2b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WFontMetrics.html">WFontMetrics</a> Wt::WRasterImage::fontMetrics </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns font metrics. </p>
<p>This returns font metrics for the current font.</p>
<p>Throws a std::logic_error if the underlying device does not provide font metrics. </p>

<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#a468ec8684106f8e24b3c46876ee86ff7">Wt::WPaintDevice</a>.</p>

</div>
</div>
<a class="anchor" id="a4ef7d7a0684af480a2a61881d7240da2"></a><!-- doxytag: member="Wt::WRasterImage::getPixel" ref="a4ef7d7a0684af480a2a61881d7240da2" args="(int x, int y)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WColor.html">WColor</a> Wt::WRasterImage::getPixel </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Low-level paint method. </p>
<p>Use this method to directly get the color for an individual pixel, when using the paint device without a painter. </p>

</div>
</div>
<a class="anchor" id="a636543ffb0fffeb7a9e0dd8a166d3167"></a><!-- doxytag: member="Wt::WRasterImage::handleRequest" ref="a636543ffb0fffeb7a9e0dd8a166d3167" args="(const Http::Request &amp;request, Http::Response &amp;response)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WRasterImage::handleRequest </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1Http_1_1Request.html">Http::Request</a> &amp;&#160;</td>
          <td class="paramname"><em>request</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classWt_1_1Http_1_1Response.html">Http::Response</a> &amp;&#160;</td>
          <td class="paramname"><em>response</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Handles a request. </p>
<p>Reimplement this method so that a proper response is generated for the given request. From the <code>request</code> object you can access request parameters and whether the request is a continuation request. In the <code>response</code> object, you should set the mime type and stream the output data.</p>
<p>A request may also concern a continuation, indicated in <a class="el" href="classWt_1_1Http_1_1Request.html#a2d4f88961a222be846460a8238823ae0" title="Returns a continuation object.">Http::Request::continuation()</a>, in which case the next part for a previously created continuation should be served.</p>
<p>While handling a request, which may happen at any time together with event handling, the library makes sure that the resource is not being concurrently deleted, but multiple requests may happend simultaneously for a single resource. </p>

<p>Implements <a class="el" href="classWt_1_1WResource.html#a3a740f8cc29e2e6e4e58defc9c88b8b6">Wt::WResource</a>.</p>

</div>
</div>
<a class="anchor" id="aa04944c08a0995ff2eaa42c5bd431de6"></a><!-- doxytag: member="Wt::WRasterImage::height" ref="aa04944c08a0995ff2eaa42c5bd431de6" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classWt_1_1WLength.html">WLength</a> Wt::WRasterImage::height </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the device height. </p>
<p>The device height, in pixels, establishes the height of the device coordinate system. </p>

<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#a24c7e1363440e6994b44381ebf443157">Wt::WPaintDevice</a>.</p>

</div>
</div>
<a class="anchor" id="a8b04b69af81e9f8e6294ac52612aa2e0"></a><!-- doxytag: member="Wt::WRasterImage::init" ref="a8b04b69af81e9f8e6294ac52612aa2e0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WRasterImage::init </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initializes the device for painting. </p>
<p>This method is called when a <a class="el" href="classWt_1_1WPainter.html" title="Vector graphics painting class.">WPainter</a> starts painting.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a6b81663b5599f0736ae5099ac7325d44" title="Begins painting on a paint device.">WPainter::begin(WPaintDevice *)</a>, <a class="el" href="classWt_1_1WRasterImage.html#a626f46e6b7cac223224c72bf3684b61d" title="Returns the painter that is currently painting on the device.">painter()</a> </dd></dl>

<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#a04d6f9e0653a9785662c1e987b597cc6">Wt::WPaintDevice</a>.</p>

</div>
</div>
<a class="anchor" id="ad4255009a186572744ee9ac9a5fba1c2"></a><!-- doxytag: member="Wt::WRasterImage::measureText" ref="ad4255009a186572744ee9ac9a5fba1c2" args="(const WString &amp;text, double maxWidth=&#45;1, bool wordWrap=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WTextItem.html">WTextItem</a> Wt::WRasterImage::measureText </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>maxWidth</em> = <code>-1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>wordWrap</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Measures rendered text size. </p>
<p>Returns the bounding rect of the given text when rendered using the current font.</p>
<p>If <code>maxWidth</code> != -1, then the text is truncated to fit in the width.</p>
<p>If <code>wordWrap</code> = <code>true</code> then text is truncated only at word boundaries. Note that in this case the whitespace at the truncated position is included in the text but not accounted for by the returned width (since usually you will not render the whitespace at the end of a line).</p>
<p>Throws a std::logic_error if the underlying device does not provide font metrics. </p>

<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#a21d005287f1973348357e089d6d18df1">Wt::WPaintDevice</a>.</p>

</div>
</div>
<a class="anchor" id="acf75d51af5965dfa9f06c8bdab084c5a"></a><!-- doxytag: member="Wt::WRasterImage::paintActive" ref="acf75d51af5965dfa9f06c8bdab084c5a" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool Wt::WRasterImage::paintActive </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns whether painting is active. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WRasterImage.html#a8b04b69af81e9f8e6294ac52612aa2e0" title="Initializes the device for painting.">init()</a>, <a class="el" href="classWt_1_1WRasterImage.html#a626f46e6b7cac223224c72bf3684b61d" title="Returns the painter that is currently painting on the device.">painter()</a> </dd></dl>

<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#a7dc74a2c7c98e38c7851277313d313f6">Wt::WPaintDevice</a>.</p>

</div>
</div>
<a class="anchor" id="a626f46e6b7cac223224c72bf3684b61d"></a><!-- doxytag: member="Wt::WRasterImage::painter" ref="a626f46e6b7cac223224c72bf3684b61d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classWt_1_1WPainter.html">WPainter</a>* Wt::WRasterImage::painter </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the painter that is currently painting on the device. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WRasterImage.html#a8b04b69af81e9f8e6294ac52612aa2e0" title="Initializes the device for painting.">init()</a> </dd></dl>

<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#ae1c75c6bc0e5a2d6322b176f6f13403c">Wt::WPaintDevice</a>.</p>

</div>
</div>
<a class="anchor" id="a7d61c2108242fc61ecdc14c42a50443f"></a><!-- doxytag: member="Wt::WRasterImage::setChanged" ref="a7d61c2108242fc61ecdc14c42a50443f" args="(WFlags&lt; ChangeFlag &gt; flags)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WRasterImage::setChanged </td>
          <td>(</td>
          <td class="paramtype">WFlags&lt; <a class="el" href="classWt_1_1WPaintDevice.html#a1a2feafa01212eba9ad6c7b484ad8da1">ChangeFlag</a> &gt;&#160;</td>
          <td class="paramname"><em>flags</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Indicates changes in painter state. </p>
<p>The <code>flags</code> argument is the logical OR of one or more change flags.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPaintDevice.html#a1a2feafa01212eba9ad6c7b484ad8da1" title="Enumeration to communicate painter state changes.">ChangeFlag</a> </dd></dl>

<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#ab3a4c9799e46ab66c0f6cb4182e9cb72">Wt::WPaintDevice</a>.</p>

</div>
</div>
<a class="anchor" id="a96888a696b1f98c2d36fda556595ab08"></a><!-- doxytag: member="Wt::WRasterImage::setPixel" ref="a96888a696b1f98c2d36fda556595ab08" args="(int x, int y, const WColor &amp;color)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WRasterImage::setPixel </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WColor.html">WColor</a> &amp;&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Low-level paint method. </p>
<p>Use this method to directly set colors for individual pixels, when using the paint device without a painter. </p>

</div>
</div>
<a class="anchor" id="a007f7f513d23ffe9c24947462780dcc5"></a><!-- doxytag: member="Wt::WRasterImage::width" ref="a007f7f513d23ffe9c24947462780dcc5" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classWt_1_1WLength.html">WLength</a> Wt::WRasterImage::width </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the device width. </p>
<p>The device width, in pixels, establishes the width of the device coordinate system. </p>

<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#a9a0d38acb408d4520d0dd520c93d47e0">Wt::WPaintDevice</a>.</p>

</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"><address style="text-align: right; margin: 3px"><small>
Generated on Thu Nov 1 2012 for <a href="http://www.webtoolkit.eu/wt">the
C++ Web Toolkit (Wt)</a> by&nbsp;<a
href="http://www.doxygen.org/index.html"><img src="doxygen.png"
alt="doxygen" border="0" style="vertical-align: middle; display:
inline-block; height: 2em"></a> 1.7.5.1</small></address>
</body>
</html>