Sophie

Sophie

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

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>kdefx: KPixmap Class Reference (kdefx)</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=".">kdefx</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">KPixmap Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="KPixmap" --><!-- doxytag: inherits="QPixmap" -->
<p>Off-screen paint device with extended features.  
 <a href="classKPixmap.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="kpixmap_8h_source.html">kpixmap.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for KPixmap:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classKPixmap.png" usemap="#KPixmap_map" alt=""/>
  <map id="KPixmap_map" name="KPixmap_map">
<area href="qpixmap.html" alt="QPixmap" shape="rect" coords="0,0,62,24"/>
</map>
 </div></div>

<p><a href="classKPixmap-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="classKPixmap.html#ab33436f184e5de9253ef8863cc37caa1">ColorMode</a> { <br/>
&#160;&#160;<a class="el" href="classKPixmap.html#ab33436f184e5de9253ef8863cc37caa1aacc44465eacf7b104ab9dc5a7d7f33c3">Auto</a>, 
<a class="el" href="classKPixmap.html#ab33436f184e5de9253ef8863cc37caa1ae5c164e4bcd6410edce01d54a2511326">Color</a>, 
<a class="el" href="classKPixmap.html#ab33436f184e5de9253ef8863cc37caa1ac06e4d20925f89531a749b2821858993">Mono</a>, 
<a class="el" href="classKPixmap.html#ab33436f184e5de9253ef8863cc37caa1a08fb9faec53e6c78471730bc3c652f08">LowColor</a>, 
<br/>
&#160;&#160;<a class="el" href="classKPixmap.html#ab33436f184e5de9253ef8863cc37caa1a81c74e85e293133e9a335e787a1fe4c9">WebColor</a>
<br/>
 }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmap.html#a5ebcd7c185a38577514cdd2ddf35ab67">GradientMode</a> { <b>Horizontal</b>, 
<b>Vertical</b>, 
<b>Diagonal</b>, 
<b>CrossDiagonal</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">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmap.html#a35b6cfb17e93ab78113baa5f970bbb12">KPixmap</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmap.html#a846aa22a885513da71088b48041c283b">~KPixmap</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmap.html#a259044638c035ac2614658c1f8e69f5f">KPixmap</a> (const <a class="elRef" href="qpixmap.html">QPixmap</a> &amp;pix)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmap.html#a1dce0fd7cc88a58a6476b1c6b10b2517">convertFromImage</a> (const <a class="elRef" href="qimage.html">QImage</a> &amp;img, int conversion_flags)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmap.html#ae72ea45200dbf839d573070fa6b63d99">convertFromImage</a> (const <a class="elRef" href="qimage.html">QImage</a> &amp;img, <a class="el" href="classKPixmap.html#ab33436f184e5de9253ef8863cc37caa1">ColorMode</a> mode=WebColor)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmap.html#ac868f85efc0b04564354d4a99d3dc31a">load</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;fileName, const char *format, int conversion_flags)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmap.html#a1921c92524cb3bda188a99736ae5d1f6">load</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;fileName, const char *format=0, <a class="el" href="classKPixmap.html#ab33436f184e5de9253ef8863cc37caa1">ColorMode</a> mode=WebColor)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmap.html#aac7f7e9309657a89a805b2aee29569d7">checkColorTable</a> (const <a class="elRef" href="qimage.html">QImage</a> &amp;image)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Off-screen paint device with extended features. </p>
<p><a class="el" href="classKPixmap.html" title="Off-screen paint device with extended features.">KPixmap</a> has two new color modes, WebColor and LowColor, applicable to 8bpp displays.</p>
<p>In WebColor mode all images are dithered to the Netscape palette, even when they have their own color table. WebColor is the default mode for <a class="el" href="classKPixmap.html" title="Off-screen paint device with extended features.">KPixmap</a> so that standard applications can share the Netscape palette across the desktop.</p>
<p>In LowColor mode images are checked to see if their color table matches the <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/namespaceKDE.html">KDE</a> icon palette. If the color tables do not match, the images are dithered to a minimal 3x3x3 color cube. LowColor mode can be used to load icons, background images etc. so that components of the desktop which are always present use no more than 40 colors.</p>
<dl class="author"><dt><b>Author:</b></dt><dd>Mark Donohoe (<a href="mailto:donohoe@kde.org">donohoe@kde.org</a>) </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="kpixmap_8h_source.html">kpixmap.h</a> 465272 2005-09-29 09:47:40Z mueller </dd></dl>

<p>Definition at line <a class="el" href="kpixmap_8h_source.html#l00057">57</a> of file <a class="el" href="kpixmap_8h_source.html">kpixmap.h</a>.</p>
</div><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="ab33436f184e5de9253ef8863cc37caa1"></a><!-- doxytag: member="KPixmap::ColorMode" ref="ab33436f184e5de9253ef8863cc37caa1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKPixmap.html#ab33436f184e5de9253ef8863cc37caa1">KPixmap::ColorMode</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This enumeration provides a color pallete specification. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKPixmap.html#a1dce0fd7cc88a58a6476b1c6b10b2517" title="Converts an image and sets this pixmap.">KPixmap::convertFromImage()</a>, <a class="el" href="classKPixmap.html#ac868f85efc0b04564354d4a99d3dc31a" title="Loads a pixmap from the file fileName.">KPixmap::load()</a> </dd></dl>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="ab33436f184e5de9253ef8863cc37caa1aacc44465eacf7b104ab9dc5a7d7f33c3"></a><!-- doxytag: member="Auto" ref="ab33436f184e5de9253ef8863cc37caa1aacc44465eacf7b104ab9dc5a7d7f33c3" args="" -->Auto</em>&nbsp;</td><td>
<p>Convert to monochrome if possible. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ab33436f184e5de9253ef8863cc37caa1ae5c164e4bcd6410edce01d54a2511326"></a><!-- doxytag: member="Color" ref="ab33436f184e5de9253ef8863cc37caa1ae5c164e4bcd6410edce01d54a2511326" args="" -->Color</em>&nbsp;</td><td>
<p>Native display depth. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ab33436f184e5de9253ef8863cc37caa1ac06e4d20925f89531a749b2821858993"></a><!-- doxytag: member="Mono" ref="ab33436f184e5de9253ef8863cc37caa1ac06e4d20925f89531a749b2821858993" args="" -->Mono</em>&nbsp;</td><td>
<p>Monochrome pixmap. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ab33436f184e5de9253ef8863cc37caa1a08fb9faec53e6c78471730bc3c652f08"></a><!-- doxytag: member="LowColor" ref="ab33436f184e5de9253ef8863cc37caa1a08fb9faec53e6c78471730bc3c652f08" args="" -->LowColor</em>&nbsp;</td><td>
<p>3x3x3 color cube (or monochrome) </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ab33436f184e5de9253ef8863cc37caa1a81c74e85e293133e9a335e787a1fe4c9"></a><!-- doxytag: member="WebColor" ref="ab33436f184e5de9253ef8863cc37caa1a81c74e85e293133e9a335e787a1fe4c9" args="" -->WebColor</em>&nbsp;</td><td>
<p>Netscape pallete (or monochrome) </p>
</td></tr>
</table>
</dd>
</dl>

<p>Definition at line <a class="el" href="kpixmap_8h_source.html#l00064">64</a> of file <a class="el" href="kpixmap_8h_source.html">kpixmap.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5ebcd7c185a38577514cdd2ddf35ab67"></a><!-- doxytag: member="KPixmap::GradientMode" ref="a5ebcd7c185a38577514cdd2ddf35ab67" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKPixmap.html#a5ebcd7c185a38577514cdd2ddf35ab67">KPixmap::GradientMode</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This enumeration provides a gradient mode specification. </p>

<p>Definition at line <a class="el" href="kpixmap_8h_source.html#l00073">73</a> of file <a class="el" href="kpixmap_8h_source.html">kpixmap.h</a>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a35b6cfb17e93ab78113baa5f970bbb12"></a><!-- doxytag: member="KPixmap::KPixmap" ref="a35b6cfb17e93ab78113baa5f970bbb12" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KPixmap::KPixmap </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a null pixmap. </p>

<p>Definition at line <a class="el" href="kpixmap_8h_source.html#l00082">82</a> of file <a class="el" href="kpixmap_8h_source.html">kpixmap.h</a>.</p>

</div>
</div>
<a class="anchor" id="a846aa22a885513da71088b48041c283b"></a><!-- doxytag: member="KPixmap::~KPixmap" ref="a846aa22a885513da71088b48041c283b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KPixmap::~KPixmap </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destructs the pixmap. </p>
<p>### <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/namespaceKDE.html">KDE</a> 4: remove </p>

<p>Definition at line <a class="el" href="kpixmap_8cpp_source.html#l00160">160</a> of file <a class="el" href="kpixmap_8cpp_source.html">kpixmap.cpp</a>.</p>

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

<p>Copies the <a class="elRef" href="qpixmap.html">QPixmap</a> <code>pix</code>. </p>

<p>Definition at line <a class="el" href="kpixmap_8cpp_source.html#l00386">386</a> of file <a class="el" href="kpixmap_8cpp_source.html">kpixmap.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aac7f7e9309657a89a805b2aee29569d7"></a><!-- doxytag: member="KPixmap::checkColorTable" ref="aac7f7e9309657a89a805b2aee29569d7" args="(const QImage &amp;image)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KPixmap::checkColorTable </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>Returns true if the image posesses a color table that matches the Icon palette or false otherwise. </p>
<p>An image with one color not found in the Icon palette is considered to be a match, since this extra color may be a transparent background. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">image</td><td>the image to test </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kpixmap_8cpp_source.html#l00291">291</a> of file <a class="el" href="kpixmap_8cpp_source.html">kpixmap.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ae72ea45200dbf839d573070fa6b63d99"></a><!-- doxytag: member="KPixmap::convertFromImage" ref="ae72ea45200dbf839d573070fa6b63d99" args="(const QImage &amp;img, ColorMode mode=WebColor)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KPixmap::convertFromImage </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qimage.html">QImage</a> &amp;&#160;</td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classKPixmap.html#ab33436f184e5de9253ef8863cc37caa1">ColorMode</a>&#160;</td>
          <td class="paramname"><em>mode</em> = <code>WebColor</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This is an overloaded member function, provided for convenience. </p>
<p>It differs from the above function only in what argument(s) it accepts. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>the image to convert </td></tr>
    <tr><td class="paramname">mode</td><td>a ColorMode to apply </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if successful. </dd></dl>

<p>Definition at line <a class="el" href="kpixmap_8cpp_source.html#l00201">201</a> of file <a class="el" href="kpixmap_8cpp_source.html">kpixmap.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a1dce0fd7cc88a58a6476b1c6b10b2517"></a><!-- doxytag: member="KPixmap::convertFromImage" ref="a1dce0fd7cc88a58a6476b1c6b10b2517" args="(const QImage &amp;img, int conversion_flags)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KPixmap::convertFromImage </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qimage.html">QImage</a> &amp;&#160;</td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>conversion_flags</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an image and sets this pixmap. </p>
<p>The conversion_flags argument is a bitwise-OR from the following choices. The options marked (default) are the choice if no other choice from the list is included (they are zero):</p>
<p>Color/Mono preference</p>
<ul>
<li>WebColor - If the image has depth 1 and contains only black and white pixels then the pixmap becomes monochrome. If the pixmap has a depth of 8 bits per pixel then the Netscape palette is used for the pixmap color table. </li>
<li>LowColor - If the image has depth 1 and contains only black and white pixels then the pixmap becomes monochrome. If the pixmap has a depth of 8 bits per pixel and the image does not posess a color table that matches the Icon palette a 3x3x3 color cube is used for the pixmap color table. </li>
<li>AutoColor (default) - If the image has depth 1 and contains only black and white pixels, then the pixmap becomes monochrome. </li>
<li>ColorOnly - The pixmap is dithered/converted to the native display depth. </li>
<li>MonoOnly - The pixmap becomes monochrome. If necessary, it is dithered using the chosen dithering algorithm.</li>
</ul>
<p>Dithering mode preference, for RGB channels</p>
<ul>
<li>DiffuseDither (default) - A high quality dither. </li>
<li>OrderedDither - A faster more ordered dither. </li>
<li>ThresholdDither - No dithering, closest color is used.</li>
</ul>
<p>Dithering mode preference, for alpha channel</p>
<ul>
<li>DiffuseAlphaDither - A high quality dither. </li>
<li>OrderedAlphaDither - A faster more ordered dither. </li>
<li>ThresholdAlphaDither (default) - No dithering.</li>
</ul>
<p>Color matching versus dithering preference</p>
<ul>
<li>PreferDither - Always dither 32-bit images when the image is being converted to 8-bits. This is the default when converting to a pixmap. </li>
<li>AvoidDither - Only dither 32-bit images if the image has more than 256 colors and it is being converted to 8-bits. This is the default when an image is converted for the purpose of saving to a file.</li>
</ul>
<p>Passing 0 for <code>conversion_flags</code> gives all the default options.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>the image to convert </td></tr>
    <tr><td class="paramname">conversion_flags</td><td>bitmask, described above </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if successful. </dd></dl>

<p>Reimplemented from <a class="elRef" href="qpixmap.html#convertFromImage">QPixmap</a>.</p>

<p>Definition at line <a class="el" href="kpixmap_8cpp_source.html#l00223">223</a> of file <a class="el" href="kpixmap_8cpp_source.html">kpixmap.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ac868f85efc0b04564354d4a99d3dc31a"></a><!-- doxytag: member="KPixmap::load" ref="ac868f85efc0b04564354d4a99d3dc31a" args="(const QString &amp;fileName, const char *format, int conversion_flags)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KPixmap::load </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>fileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>conversion_flags</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Loads a pixmap from the file <code>fileName</code>. </p>
<p>If format is specified, the loader attempts to read the pixmap using the specified format. If format is not specified (default), the loader reads a few bytes from the header to guess the file format.</p>
<p>The <a class="elRef" href="qimageio.html">QImageIO</a> documentation lists the supported image formats and explains how to add extra formats.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">fileName</td><td>the name of the file to load the image from </td></tr>
    <tr><td class="paramname">format</td><td>the format for the image </td></tr>
    <tr><td class="paramname">conversion_flags</td><td>a bitmask, as described in <a class="el" href="classKPixmap.html#a1dce0fd7cc88a58a6476b1c6b10b2517" title="Converts an image and sets this pixmap.">convertFromImage()</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if successful, or false if the pixmap could not be loaded. </dd></dl>

<p>Reimplemented from <a class="elRef" href="qpixmap.html#load">QPixmap</a>.</p>

<p>Definition at line <a class="el" href="kpixmap_8cpp_source.html#l00164">164</a> of file <a class="el" href="kpixmap_8cpp_source.html">kpixmap.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a1921c92524cb3bda188a99736ae5d1f6"></a><!-- doxytag: member="KPixmap::load" ref="a1921c92524cb3bda188a99736ae5d1f6" args="(const QString &amp;fileName, const char *format=0, ColorMode mode=WebColor)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KPixmap::load </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>fileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>format</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classKPixmap.html#ab33436f184e5de9253ef8863cc37caa1">ColorMode</a>&#160;</td>
          <td class="paramname"><em>mode</em> = <code>WebColor</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This is an overloaded member function, provided for convenience. </p>
<p>It differs from the above function only in what argument(s) it accepts. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">fileName</td><td>the name of the file to load the image from </td></tr>
    <tr><td class="paramname">format</td><td>the format for the image </td></tr>
    <tr><td class="paramname">mode</td><td>a ColorMode to apply </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if successful, or false if the pixmap could not be loaded. </dd></dl>

<p>Definition at line <a class="el" href="kpixmap_8cpp_source.html#l00178">178</a> of file <a class="el" href="kpixmap_8cpp_source.html">kpixmap.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="kpixmap_8h_source.html">kpixmap.h</a></li>
<li><a class="el" href="kpixmap_8cpp_source.html">kpixmap.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>kdefx</h2>
<div class="nav_list">
<ul><li><a href="index.html">Main Page</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="functions.html">Class Members</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="classKCPUInfo.html">kcpuinfo</option>,  <option value="classKImageEffect.html">kimageeffect</option>,  <option value="classKPixmap.html">kpixmap</option>,  <option value="classKPixmapEffect.html">kpixmapeffect</option>,  <option value="classKPixmapSplitter.html">kpixmapsplitter</option>,  <option value="classKStyle.html">kstyle</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>