Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 1f9eb832ba1e4b88d9a5c2b384813bb4 > files > 3492

kdelibs3-apidocs-3.5.10-31.fc15.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!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" lang="en_US" xml:lang="en_US">

<head>
  <title>kdeui: KPixmapIO Class Reference (kdeui)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <meta http-equiv="Content-Style-Type" content="text/css" />

  <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org"  r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org"  r (n 0 s 0 v 0 l 0))' />

  <meta name="trademark" content="KDE e.V." />
  <meta name="description" content="K Desktop Environment Homepage, KDE.org" />
  <meta name="MSSmartTagsPreventParsing" content="true" />
  <meta name="robots" content="all" />

  <link rel="shortcut icon" href="../../favicon.ico" />

<link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" />



</head>

<body>

<div id="nav_header_top" align="right">
  <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a>

  <a href="../.."><img id="nav_header_logo" alt="Home" align="left" src="../../kde_gear_64.png" border="0" /></a>
  <span class="doNotDisplay">::</span>

  <div id="nav_header_title" align="left">KDE API Reference</div>


</div>

<div id="nav_header_bottom" align="right">
  <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span>
  <div id="nav_header_bottom_right" style="text-align: left;">
/ <a href="../..">API Reference</a>
 / <a href=".">kdeui</a>
  </div>
</div>


<table id="main" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
      <td valign="top" class="menuheader" height="0"></td>

  <td id="contentcolumn" valign="top" rowspan="2" >
    <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;">
    <a name="content"></a>


<!-- Generated by Doxygen 1.7.4 -->
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">KPixmapIO Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="KPixmapIO" -->
<p>Fast <a class="elRef" href="qimage.html">QImage</a> to/from <a class="elRef" href="qpixmap.html">QPixmap</a> conversion.  
 <a href="classKPixmapIO.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="kpixmapio_8h_source.html">kpixmapio.h</a>&gt;</code></p>

<p><a href="classKPixmapIO-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapIO.html#a834f7ed4c22e796ededa931c41b44195">ShmPolicies</a> { <b>ShmDontKeep</b>, 
<b>ShmKeepAndGrow</b>
 }</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qpixmap.html">QPixmap</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapIO.html#ac70f40601e18c29abb68692c426a996a">convertToPixmap</a> (const <a class="elRef" href="qimage.html">QImage</a> &amp;image)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qimage.html">QImage</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapIO.html#aa62a68b23b735956a2094a21fc917484">convertToImage</a> (const <a class="elRef" href="qpixmap.html">QPixmap</a> &amp;pixmap)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapIO.html#a0e0075e3f23ec18f6123cfb0b401862c">putImage</a> (<a class="elRef" href="qpixmap.html">QPixmap</a> *dst, int dx, int dy, const <a class="elRef" href="qimage.html">QImage</a> *src)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapIO.html#af2ac55963d2f491cf57f2ece97782aca">putImage</a> (<a class="elRef" href="qpixmap.html">QPixmap</a> *dst, const <a class="elRef" href="qpoint.html">QPoint</a> &amp;offset, const <a class="elRef" href="qimage.html">QImage</a> *src)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qimage.html">QImage</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapIO.html#a5a84f4187a2a4c1e4008dca1fefec7d5">getImage</a> (const <a class="elRef" href="qpixmap.html">QPixmap</a> *src, int sx, int sy, int sw, int sh)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qimage.html">QImage</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapIO.html#a7ed0365ca1642e85eebb4614f0334fb2">getImage</a> (const <a class="elRef" href="qpixmap.html">QPixmap</a> *src, const <a class="elRef" href="qrect.html">QRect</a> &amp;rect)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapIO.html#a15de5eb7c118451cf33a673dc735d26b">setShmPolicy</a> (int policy)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapIO.html#a23352ba92b90866ccfaa9208b1c34d06">preAllocShm</a> (int size)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Fast <a class="elRef" href="qimage.html">QImage</a> to/from <a class="elRef" href="qpixmap.html">QPixmap</a> conversion. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>Geert Jansen &lt;<a href="mailto:jansen@kde.org">jansen@kde.org</a>&gt; </dd></dl>
<dl class="version"><dt><b>Version:</b></dt><dd></dd></dl>
<dl class="rcs"><dt><b>Id:</b></dt><dd><a class="el" href="kpixmapio_8h_source.html">kpixmapio.h</a> 345236 2004-09-09 15:23:55Z dfaure </dd></dl>
<p><a class="el" href="classKPixmapIO.html" title="Fast QImage to/from QPixmap conversion.">KPixmapIO</a> implements a fast path for <a class="elRef" href="qpixmap.html">QPixmap</a> to/from <a class="elRef" href="qimage.html">QImage</a> conversions. It uses the MIT-SHM shared memory extension for this. If this extension is not available, it will fall back to standard <a class="elRef" href="qt.html">Qt</a> methods.</p>
<p><b>Typical usage:</b><br/>
</p>
<p>You can use <a class="el" href="classKPixmapIO.html" title="Fast QImage to/from QPixmap conversion.">KPixmapIO</a> for load/saving pixmaps.</p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classKPixmapIO.html" title="Fast QImage to/from QPixmap conversion.">KPixmapIO</a> io;
 pixmap = io.<a class="code" href="classKPixmapIO.html#ac70f40601e18c29abb68692c426a996a" title="Convert an image to a pixmap.">convertToPixmap</a>(image);
 image = io.<a class="code" href="classKPixmapIO.html#aa62a68b23b735956a2094a21fc917484" title="Convert a pixmap to an image.">convertToImage</a>(pixmap);
</pre></div><p>It also has functionality for partially updating/saving pixmaps, see putImage and getImage.</p>
<p><b><a class="el" href="classKPixmapIO.html" title="Fast QImage to/from QPixmap conversion.">KPixmapIO</a> vs. <a class="elRef" href="qt.html">Qt</a> speed comparison</b><br/>
</p>
<p>Speed measurements were taken. These show that usage of <a class="el" href="classKPixmapIO.html" title="Fast QImage to/from QPixmap conversion.">KPixmapIO</a> for images up to a certain threshold size, offers no speed advantage over the <a class="elRef" href="qt.html">Qt</a> routines. Below you can see a plot of these measurements.</p>
<div class="image">
<img src="kpixmapio-perf.png" alt="kpixmapio-perf.png"/>
<div class="caption">
Performance of KPixmapIO</div></div>
<p> The threshold size, amongst other causes, is determined by the shared memory allocation policy. If the policy is <code>ShmDontKeep</code>, the shared memory segment is discarded right after usage, and thus needs to be allocated before each transfer. This introduces a a setup penalty not present when the policy is <code>ShmKeepAndGrow</code>. In this case the shared memory segment is kept and resized when necessary, until the <a class="el" href="classKPixmapIO.html" title="Fast QImage to/from QPixmap conversion.">KPixmapIO</a> object is destroyed.</p>
<p>The default policy is <code>ShmDontKeep</code>. This policy makes sense when loading pixmaps once. The corresponding threshold is taken at 5.000 pixels as suggested by experiments. Below this threshold, <a class="el" href="classKPixmapIO.html" title="Fast QImage to/from QPixmap conversion.">KPixmapIO</a> will not use shared memory and fall back on the <a class="elRef" href="qt.html">Qt</a> routines.</p>
<p>When the policy is <code>ShmKeepAndGrow</code>, the threshold is taken at 2.000 pixels. Using this policy, you might want to use preAllocShm to pre-allocate a certain amount of shared memory, in order to avoid resizes. This allocation policy makes sense in a multimedia type application where you are constantly updating the screen.</p>
<p>Above a couple times the threshold size, KPixmapIO's and Qt's speed become linear in the number of pixels, <a class="el" href="classKPixmapIO.html" title="Fast QImage to/from QPixmap conversion.">KPixmapIO</a> being at least 2, and mostly around 4 times faster than <a class="elRef" href="qt.html">Qt</a>, depending on the screen and image depth.</p>
<p>Speed difference seems to be the most at 16 bpp, followed by 32 and 24 bpp respectively. This can be explained by the relatively poor implementation of 16 bit RGB packing in <a class="elRef" href="qt.html">Qt</a>, while at 32 bpp we need to transfer more data, and thus gain more, than at 24 bpp.</p>
<p><b>Conclusion:</b><br/>
</p>
<p>For large pixmaps, there's a definite speed improvement when using <a class="el" href="classKPixmapIO.html" title="Fast QImage to/from QPixmap conversion.">KPixmapIO</a>. On the other hand, there's no speed improvement for small pixmaps. When you know you're only transferring small pixmaps, there's no point in using it. </p>

<p>Definition at line <a class="el" href="kpixmapio_8h_source.html#l00087">87</a> of file <a class="el" href="kpixmapio_8h_source.html">kpixmapio.h</a>.</p>
</div><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a834f7ed4c22e796ededa931c41b44195"></a><!-- doxytag: member="KPixmapIO::ShmPolicies" ref="a834f7ed4c22e796ededa931c41b44195" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKPixmapIO.html#a834f7ed4c22e796ededa931c41b44195">KPixmapIO::ShmPolicies</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Shared memory allocation policies. </p>

<p>Definition at line <a class="el" href="kpixmapio_8h_source.html#l00142">142</a> of file <a class="el" href="kpixmapio_8h_source.html">kpixmapio.h</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aa62a68b23b735956a2094a21fc917484"></a><!-- doxytag: member="KPixmapIO::convertToImage" ref="aa62a68b23b735956a2094a21fc917484" args="(const QPixmap &amp;pixmap)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qimage.html">QImage</a> KPixmapIO::convertToImage </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qpixmap.html">QPixmap</a> &amp;&#160;</td>
          <td class="paramname"><em>pixmap</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Convert a pixmap to an image. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pixmap</td><td>The pixmap to convert. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The image. </dd></dl>

<p>Definition at line <a class="el" href="kpixmapio_8cpp_source.html#l00205">205</a> of file <a class="el" href="kpixmapio_8cpp_source.html">kpixmapio.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ac70f40601e18c29abb68692c426a996a"></a><!-- doxytag: member="KPixmapIO::convertToPixmap" ref="ac70f40601e18c29abb68692c426a996a" args="(const QImage &amp;image)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qpixmap.html">QPixmap</a> KPixmapIO::convertToPixmap </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qimage.html">QImage</a> &amp;&#160;</td>
          <td class="paramname"><em>image</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Convert an image to a pixmap. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">image</td><td>The image to convert. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The pixmap containing the image. </dd></dl>

<p>Definition at line <a class="el" href="kpixmapio_8cpp_source.html#l00187">187</a> of file <a class="el" href="kpixmapio_8cpp_source.html">kpixmapio.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a5a84f4187a2a4c1e4008dca1fefec7d5"></a><!-- doxytag: member="KPixmapIO::getImage" ref="a5a84f4187a2a4c1e4008dca1fefec7d5" args="(const QPixmap *src, int sx, int sy, int sw, int sh)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qimage.html">QImage</a> KPixmapIO::getImage </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qpixmap.html">QPixmap</a> *&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>sx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>sy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>sw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>sh</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Transfer (a part of) a pixmap to an image. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>The source pixmap. </td></tr>
    <tr><td class="paramname">sx</td><td>Source x offset. </td></tr>
    <tr><td class="paramname">sy</td><td>Source y offset. </td></tr>
    <tr><td class="paramname">sw</td><td>Source width. </td></tr>
    <tr><td class="paramname">sh</td><td>Source height. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The image. </dd></dl>

<p>Definition at line <a class="el" href="kpixmapio_8cpp_source.html#l00258">258</a> of file <a class="el" href="kpixmapio_8cpp_source.html">kpixmapio.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a7ed0365ca1642e85eebb4614f0334fb2"></a><!-- doxytag: member="KPixmapIO::getImage" ref="a7ed0365ca1642e85eebb4614f0334fb2" args="(const QPixmap *src, const QRect &amp;rect)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qimage.html">QImage</a> KPixmapIO::getImage </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qpixmap.html">QPixmap</a> *&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qrect.html">QRect</a> &amp;&#160;</td>
          <td class="paramname"><em>rect</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This function is identical to the one above. </p>
<p>It only differs in the arguments it accepts. </p>

<p>Definition at line <a class="el" href="kpixmapio_8cpp_source.html#l00252">252</a> of file <a class="el" href="kpixmapio_8cpp_source.html">kpixmapio.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a23352ba92b90866ccfaa9208b1c34d06"></a><!-- doxytag: member="KPixmapIO::preAllocShm" ref="a23352ba92b90866ccfaa9208b1c34d06" args="(int size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPixmapIO::preAllocShm </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Pre-allocate shared memory. </p>
<p><a class="el" href="classKPixmapIO.html" title="Fast QImage to/from QPixmap conversion.">KPixmapIO</a> will be able to transfer images up to this size without resizing. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">size</td><td>The size of the image in <code>pixels</code>. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kpixmapio_8cpp_source.html#l00897">897</a> of file <a class="el" href="kpixmapio_8cpp_source.html">kpixmapio.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af2ac55963d2f491cf57f2ece97782aca"></a><!-- doxytag: member="KPixmapIO::putImage" ref="af2ac55963d2f491cf57f2ece97782aca" args="(QPixmap *dst, const QPoint &amp;offset, const QImage *src)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPixmapIO::putImage </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qpixmap.html">QPixmap</a> *&#160;</td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qpoint.html">QPoint</a> &amp;&#160;</td>
          <td class="paramname"><em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qimage.html">QImage</a> *&#160;</td>
          <td class="paramname"><em>src</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This function is identical to the one above. </p>
<p>It only differs in the arguments it accepts. </p>

<p>Definition at line <a class="el" href="kpixmapio_8cpp_source.html#l00217">217</a> of file <a class="el" href="kpixmapio_8cpp_source.html">kpixmapio.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a0e0075e3f23ec18f6123cfb0b401862c"></a><!-- doxytag: member="KPixmapIO::putImage" ref="a0e0075e3f23ec18f6123cfb0b401862c" args="(QPixmap *dst, int dx, int dy, const QImage *src)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPixmapIO::putImage </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qpixmap.html">QPixmap</a> *&#160;</td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qimage.html">QImage</a> *&#160;</td>
          <td class="paramname"><em>src</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Bitblt an image onto a pixmap. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">dst</td><td>The destination pixmap. </td></tr>
    <tr><td class="paramname">dx</td><td>Destination x offset. </td></tr>
    <tr><td class="paramname">dy</td><td>Destination y offset. </td></tr>
    <tr><td class="paramname">src</td><td>The image to load. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kpixmapio_8cpp_source.html#l00224">224</a> of file <a class="el" href="kpixmapio_8cpp_source.html">kpixmapio.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a15de5eb7c118451cf33a673dc735d26b"></a><!-- doxytag: member="KPixmapIO::setShmPolicy" ref="a15de5eb7c118451cf33a673dc735d26b" args="(int policy)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KPixmapIO::setShmPolicy </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>policy</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the shared memory allocation policy. </p>
<p>See the introduction for <a class="el" href="classKPixmapIO.html" title="Fast QImage to/from QPixmap conversion.">KPixmapIO</a> for a discussion. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">policy</td><td>The alloction policy. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kpixmapio_8cpp_source.html#l00898">898</a> of file <a class="el" href="kpixmapio_8cpp_source.html">kpixmapio.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="kpixmapio_8h_source.html">kpixmapio.h</a></li>
<li><a class="el" href="kpixmapio_8cpp_source.html">kpixmapio.cpp</a></li>
</ul>
</div>
    </div></div>


      </td>
  </tr>
  <tr>
    <td valign="top" id="leftmenu" width="25%">
      <a name="navigation"></a>
      <div class="menu_box"><h2>kdeui</h2>
<div class="nav_list">
<ul><li><a href="index.html">Main Page</a></li><li><a href="namespaces.html">Namespace List</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="namespacemembers.html">Namespace Members</a></li><li><a href="functions.html">Class Members</a></li><li><a href="pages.html">Related Pages</a></li></ul>
<!--
<h2>Class Picker</h2>
<div style="text-align: center;">
<form name="guideform">
<select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value">
<option value="annotated.html">-- Choose --</option>
  <option value="classKAboutApplication.html">kaboutapplication</option>,  <option value="classKAboutContainer.html">kaboutcontainer</option>,  <option value="classKAboutContainerBase.html">kaboutcontainerbase</option>,  <option value="classKAboutContributor.html">kaboutcontributor</option>,  <option value="classKAboutDialog.html">kaboutdialog</option>,  <option value="classKAboutKDE.html">kaboutkde</option>,  <option value="classKAboutWidget.html">kaboutwidget</option>,  <option value="classKAccelGen_1_1Deref.html">kaccelgen::deref</option>,  <option value="classKAccelGen_1_1Deref__Key.html">kaccelgen::deref__key</option>,  <option value="classKAction.html">kaction</option>,  <option value="classKActionCollection.html">kactioncollection</option>,  <option value="classKActionMenu.html">kactionmenu</option>,  <option value="classKActionSelector.html">kactionselector</option>,  <option value="classKActiveLabel.html">kactivelabel</option>,  <option value="classKAnimWidget.html">kanimwidget</option>,  <option value="classKArrowButton.html">karrowbutton</option>,  <option value="classKAuthIcon.html">kauthicon</option>,  <option value="classKBugReport.html">kbugreport</option>,  <option value="classKButtonBox.html">kbuttonbox</option>,  <option value="classKCharSelect.html">kcharselect</option>,  <option value="classKCharSelectTable.html">kcharselecttable</option>,  <option value="classKCModule.html">kcmodule</option>,  <option value="classKColor.html">kcolor</option>,  <option value="classKColorButton.html">kcolorbutton</option>,  <option value="classKColorCells.html">kcolorcells</option>,  <option value="classKColorCombo.html">kcolorcombo</option>,  <option value="classKColorDialog.html">kcolordialog</option>,  <option value="classKColorDrag.html">kcolordrag</option>,  <option value="classKColorPatch.html">kcolorpatch</option>,  <option value="classKComboBox.html">kcombobox</option>,  <option value="classKCommand.html">kcommand</option>,  <option value="classKCommandHistory.html">kcommandhistory</option>,  <option value="classKCompletionBox.html">kcompletionbox</option>,  <option value="classKConfigDialog.html">kconfigdialog</option>,  <option value="classKContextMenuManager.html">kcontextmenumanager</option>,  <option value="classKCursor.html">kcursor</option>,  <option value="classKCursorPrivate.html">kcursorprivate</option>,  <option value="classKCursorPrivateAutoHideEventFilter.html">kcursorprivateautohideeventfilter</option>,  <option value="classKDateInternalMonthPicker.html">kdateinternalmonthpicker</option>,  <option value="classKDateInternalWeekSelector.html">kdateinternalweekselector</option>,  <option value="classKDateInternalYearSelector.html">kdateinternalyearselector</option>,  <option value="classKDatePicker.html">kdatepicker</option>,  <option value="classKDateTable.html">kdatetable</option>,  <option value="classKDateTimeWidget.html">kdatetimewidget</option>,  <option value="classKDateValidator.html">kdatevalidator</option>,  <option value="classKDateWidget.html">kdatewidget</option>,  <option value="classKDCOPActionProxy.html">kdcopactionproxy</option>,  <option value="classKDEPrivate_1_1ToolBarHandler.html">kdeprivate::toolbarhandler</option>,  <option value="classKDialog.html">kdialog</option>,  <option value="classKDialogBase.html">kdialogbase</option>,  <option value="classKDialogBaseButton.html">kdialogbasebutton</option>,  <option value="classKDialogBaseTile.html">kdialogbasetile</option>,  <option value="classKDictSpellingHighlighter.html">kdictspellinghighlighter</option>,  <option value="classKDockButton__Private.html">kdockbutton__private</option>,  <option value="classKDockMainWindow.html">kdockmainwindow</option>,  <option value="classKDockManager.html">kdockmanager</option>,  <option value="classKDockSplitter.html">kdocksplitter</option>,  <option value="classKDockTabGroup.html">kdocktabgroup</option>,  <option value="classKDockWidget.html">kdockwidget</option>,  <option value="classKDockWidgetAbstractHeader.html">kdockwidgetabstractheader</option>,  <option value="classKDockWidgetAbstractHeaderDrag.html">kdockwidgetabstractheaderdrag</option>,  <option value="classKDockWidgetHeader.html">kdockwidgetheader</option>,  <option value="classKDockWidgetHeaderDrag.html">kdockwidgetheaderdrag</option>,  <option value="classKDockWidgetPrivate.html">kdockwidgetprivate</option>,  <option value="classKDockWindow.html">kdockwindow</option>,  <option value="classKDoubleNumInput.html">kdoublenuminput</option>,  <option value="classKDoubleSpinBox.html">kdoublespinbox</option>,  <option value="classKDoubleValidator.html">kdoublevalidator</option>,  <option value="classKDualColorButton.html">kdualcolorbutton</option>,  <option value="classKEdit.html">kedit</option>,  <option value="classKEditListBox.html">keditlistbox</option>,  <option value="classKEditListBox_1_1CustomEditor.html">keditlistbox::customeditor</option>,  <option value="classKEditToolbar.html">kedittoolbar</option>,  <option value="classKEditToolbarWidget.html">kedittoolbarwidget</option>,  <option value="classKFloatValidator.html">kfloatvalidator</option>,  <option value="classKFontChooser.html">kfontchooser</option>,  <option value="classKFontCombo.html">kfontcombo</option>,  <option value="classKFontDialog.html">kfontdialog</option>,  <option value="classKFontRequester.html">kfontrequester</option>,  <option value="classKGradientSelector.html">kgradientselector</option>,  <option value="classKGuiItem.html">kguiitem</option>,  <option value="classKHelpMenu.html">khelpmenu</option>,  <option value="classKHistoryCombo.html">khistorycombo</option>,  <option value="classKHSSelector.html">khsselector</option>,  <option value="classKIconView.html">kiconview</option>,  <option value="classKIconViewItem.html">kiconviewitem</option>,  <option value="classKIconViewSearchLine.html">kiconviewsearchline</option>,  <option value="classKImageTrackLabel.html">kimagetracklabel</option>,  <option value="classKInputDialog.html">kinputdialog</option>,  <option value="classKIntNumInput.html">kintnuminput</option>,  <option value="classKIntSpinBox.html">kintspinbox</option>,  <option value="classKIntValidator.html">kintvalidator</option>,  <option value="classKJanusWidget.html">kjanuswidget</option>,  <option value="classKKeyButton.html">kkeybutton</option>,  <option value="classKKeyChooser.html">kkeychooser</option>,  <option value="classKKeyDialog.html">kkeydialog</option>,  <option value="classKLanguageButton.html">klanguagebutton</option>,  <option value="classKLed.html">kled</option>,  <option value="classKLineEdit.html">klineedit</option>,  <option value="classKLineEditDlg.html">klineeditdlg</option>,  <option value="classKListAction.html">klistaction</option>,  <option value="classKListBox.html">klistbox</option>,  <option value="classKListView.html">klistview</option>,  <option value="classKListViewItem.html">klistviewitem</option>,  <option value="classKListViewLineEdit.html">klistviewlineedit</option>,  <option value="classKListViewSearchLine.html">klistviewsearchline</option>,  <option value="classKListViewSearchLineWidget.html">klistviewsearchlinewidget</option>,  <option value="classKMacroCommand.html">kmacrocommand</option>,  <option value="classKMainWindow.html">kmainwindow</option>,  <option value="classKMainWindowInterface.html">kmainwindowinterface</option>,  <option value="classKMenuBar.html">kmenubar</option>,  <option value="classKMessageBox.html">kmessagebox</option>,  <option value="classKMimeTypeValidator.html">kmimetypevalidator</option>,  <option value="classKNamedCommand.html">knamedcommand</option>,  <option value="classKNumInput.html">knuminput</option>,  <option value="classKPaletteTable.html">kpalettetable</option>,  <option value="classKPanelApplet.html">kpanelapplet</option>,  <option value="classKPanelAppMenu.html">kpanelappmenu</option>,  <option value="classKPanelExtension.html">kpanelextension</option>,  <option value="classKPanelMenu.html">kpanelmenu</option>,  <option value="classKPassivePopup.html">kpassivepopup</option>,  <option value="classKPasswordDialog.html">kpassworddialog</option>,  <option value="classKPasswordEdit.html">kpasswordedit</option>,  <option value="classKPasteTextAction.html">kpastetextaction</option>,  <option value="classKPixmapIO.html">kpixmapio</option>,  <option value="classKPixmapRegionSelectorDialog.html">kpixmapregionselectordialog</option>,  <option value="classKPixmapRegionSelectorWidget.html">kpixmapregionselectorwidget</option>,  <option value="classKPopupFrame.html">kpopupframe</option>,  <option value="classKPopupMenu.html">kpopupmenu</option>,  <option value="classKPopupTitle.html">kpopuptitle</option>,  <option value="classKProgress.html">kprogress</option>,  <option value="classKProgressDialog.html">kprogressdialog</option>,  <option value="classKPushButton.html">kpushbutton</option>,  <option value="classKRadioAction.html">kradioaction</option>,  <option value="classKRecentFilesAction.html">krecentfilesaction</option>,  <option value="classKRestrictedLine.html">krestrictedline</option>,  <option value="classKRootPermsIcon.html">krootpermsicon</option>,  <option value="classKRootPixmap.html">krootpixmap</option>,  <option value="classKRuler.html">kruler</option>,  <option value="classKScrollView.html">kscrollview</option>,  <option value="classKSelectAction.html">kselectaction</option>,  <option value="classKSelector.html">kselector</option>,  <option value="classKSeparator.html">kseparator</option>,  <option value="classKShortcutDialog.html">kshortcutdialog</option>,  <option value="classKSpell.html">kspell</option>,  <option value="classKSpellConfig.html">kspellconfig</option>,  <option value="classKSplashScreen.html">ksplashscreen</option>,  <option value="classKSqueezedTextLabel.html">ksqueezedtextlabel</option>,  <option value="classKStatusBar.html">kstatusbar</option>,  <option value="classKStatusBarLabel.html">kstatusbarlabel</option>,  <option value="classKStdGuiItem.html">kstdguiitem</option>,  <option value="classKStringListValidator.html">kstringlistvalidator</option>,  <option value="classKSwitchLanguageDialog.html">kswitchlanguagedialog</option>,  <option value="classKSyntaxHighlighter.html">ksyntaxhighlighter</option>,  <option value="classKSystemTray.html">ksystemtray</option>,  <option value="classKTabBar.html">ktabbar</option>,  <option value="classKTabCtl.html">ktabctl</option>,  <option value="classKTabWidget.html">ktabwidget</option>,  <option value="classKTextBrowser.html">ktextbrowser</option>,  <option value="classKTextEdit.html">ktextedit</option>,  <option value="classKTimeWidget.html">ktimewidget</option>,  <option value="classKTimezoneWidget.html">ktimezonewidget</option>,  <option value="classKTipDatabase.html">ktipdatabase</option>,  <option value="classKTipDialog.html">ktipdialog</option>,  <option value="classKToggleAction.html">ktoggleaction</option>,  <option value="classKToggleFullScreenAction.html">ktogglefullscreenaction</option>,  <option value="classKToggleToolBarAction.html">ktoggletoolbaraction</option>,  <option value="classKToolBar.html">ktoolbar</option>,  <option value="classKToolBarButton.html">ktoolbarbutton</option>,  <option value="classKToolBarButtonList.html">ktoolbarbuttonlist</option>,  <option value="classKToolBarLabelAction.html">ktoolbarlabelaction</option>,  <option value="classKToolBarPopupAction.html">ktoolbarpopupaction</option>,  <option value="classKToolBarRadioGroup.html">ktoolbarradiogroup</option>,  <option value="classKURLLabel.html">kurllabel</option>,  <option value="classKValueSelector.html">kvalueselector</option>,  <option value="classKWidgetAction.html">kwidgetaction</option>,  <option value="classKWindowInfo.html">kwindowinfo</option>,  <option value="classKWizard.html">kwizard</option>,  <option value="classKWordWrap.html">kwordwrap</option>,  <option value="classKWritePermsIcon.html">kwritepermsicon</option>,  <option value="classKXMLGUIBuilder.html">kxmlguibuilder</option>,  <option value="classKXMLGUIClient.html">kxmlguiclient</option>,  <option value="classKXMLGUIFactory.html">kxmlguifactory</option>,  <option value="classKXYSelector.html">kxyselector</option>,
</select>
</form>
</div>
-->
</div></div>
<div class="menu_box"><h2>API Dox</h2>
<div class="nav_list">
<ul>
<li><a href="../../arts/html/index.html">arts</a></li><li><a href="../../dcop/html/index.html">dcop</a></li><li><a href="../../dnssd/html/index.html">dnssd</a></li><li><a href="../../interfaces/html/index.html">interfaces</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/library/html/index.html">library</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/kspeech/html/index.html">kspeech</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/ktexteditor/html/index.html">ktexteditor</a></li><li><a href="../../kabc/html/index.html">kabc</a></li><li><a href="../../kate/html/index.html">kate</a></li><li><a href="../../kcmshell/html/index.html">kcmshell</a></li><li><a href="../../kdecore/html/index.html">kdecore</a></li><li><a href="../../kded/html/index.html">kded</a></li><li><a href="../../kdefx/html/index.html">kdefx</a></li><li><a href="../../kdeprint/html/index.html">kdeprint</a></li><li><a href="../../kdesu/html/index.html">kdesu</a></li><li><a href="../../kdeui/html/index.html">kdeui</a></li><li><a href="../../kdoctools/html/index.html">kdoctools</a></li><li><a href="../../khtml/html/index.html">khtml</a></li><li><a href="../../kimgio/html/index.html">kimgio</a></li><li><a href="../../kinit/html/index.html">kinit</a></li><li><a href="../../kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/bookmarks/html/index.html">bookmarks</a></li><li>&nbsp;&nbsp;<a href="../../kio/httpfilter/html/index.html">httpfilter</a></li><li>&nbsp;&nbsp;<a href="../../kio/kfile/html/index.html">kfile</a></li><li>&nbsp;&nbsp;<a href="../../kio/kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/kioexec/html/index.html">kioexec</a></li><li>&nbsp;&nbsp;<a href="../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li>&nbsp;&nbsp;<a href="../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../kioslave/html/index.html">kioslave</a></li><li>&nbsp;&nbsp;<a href="../../kioslave/http/html/index.html">http</a></li><li><a href="../../kjs/html/index.html">kjs</a></li><li><a href="../../kmdi/html/index.html">kmdi</a></li><li>&nbsp;&nbsp;<a href="../../kmdi/kmdi/html/index.html">kmdi</a></li><li><a href="../../knewstuff/html/index.html">knewstuff</a></li><li><a href="../../kparts/html/index.html">kparts</a></li><li><a href="../../kresources/html/index.html">kresources</a></li><li><a href="../../kspell2/html/index.html">kspell2</a></li><li><a href="../../kunittest/html/index.html">kunittest</a></li><li><a href="../../kutils/html/index.html">kutils</a></li><li><a href="../../kwallet/html/index.html">kwallet</a></li><li><a href="../../libkmid/html/index.html">libkmid</a></li><li><a href="../../libkscreensaver/html/index.html">libkscreensaver</a></li>
</ul></div></div>


        </td>
</tr>
</table>

<span class="doNotDisplay">
  <a href="http://www.kde.org/" accesskey="8">KDE Home</a> |
  <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> |
  <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a>
</span>


<div style="height: 8px"></div>

<div id="footer">
  <div id="footer_left">
    Maintained by <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;groo&#116;&#64;kde&#46;or&#x67;">Adriaan de Groot</a>
and
<a href="&#109;a&#105;&#108;&#116;&#111;&#58;w&#105;nter&#64;kde&#46;or&#x67">Allen Winter</a>.
<br/>
    KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> |
    <a href="http://www.kde.org/contact/impressum.php">Legal</a>
  </div>
  <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div>
</div>

<!--
WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL
BE BLOCKED INSTANTLY AND PERMANENTLY!
<a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a>
WARNING END
-->

</body>
</html>