Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 4f45e7bdfd4a5ff17f5f8eaab90d017f > files > 1242

albumshaper-2.1-6mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>AlbumShaper: invert.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>invert.cpp File Reference</h1><code>#include &lt;qimage.h&gt;</code><br>
<code>#include &lt;qstring.h&gt;</code><br>
<code>#include &lt;math.h&gt;</code><br>
<code>#include &quot;<a class="el" href="invert_8h_source.html">invert.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="manipulationOptions_8h_source.html">manipulationOptions.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="statusWidget_8h_source.html">../../gui/statusWidget.h</a>&quot;</code><br>

<p>
<div class="dynheader">
Include dependency graph for invert.cpp:</div>
<div class="dynsection">
</div>

<p>
<a href="invert_8cpp_source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QImage *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="invert_8cpp.html#bd9c00aad578dda7df0f47fd5f3f3e11">invertEffect</a> (QString filename, <a class="el" href="classManipulationOptions.html">ManipulationOptions</a> *)</td></tr>

</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="bd9c00aad578dda7df0f47fd5f3f3e11"></a><!-- doxytag: member="invert.cpp::invertEffect" ref="bd9c00aad578dda7df0f47fd5f3f3e11" args="(QString filename, ManipulationOptions *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QImage* invertEffect           </td>
          <td>(</td>
          <td class="paramtype">QString&nbsp;</td>
          <td class="paramname"> <em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classManipulationOptions.html">ManipulationOptions</a> *&nbsp;</td>
          <td class="paramname"></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="invert_8cpp_source.html#l00040">40</a> of file <a class="el" href="invert_8cpp_source.html">invert.cpp</a>.</p>

<p>References <a class="el" href="redEye__internal_8h_source.html#l00037">editedImage</a>.</p>

<p>Referenced by <a class="el" href="editingInterface_8cpp_source.html#l00834">EditingInterface::applyEffect()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00041"></a>00041 {
<a name="l00042"></a>00042   <span class="comment">//load image</span>
<a name="l00043"></a>00043   QImage* <a class="code" href="redEye__internal_8h.html#63116a8b94b4ed0e99ddcb7f6f3bd919">editedImage</a> = <span class="keyword">new</span> QImage( filename );
<a name="l00044"></a>00044   
<a name="l00045"></a>00045   <span class="comment">//invert pixel colors, but not alpha components</span>
<a name="l00046"></a>00046   editedImage-&gt;invertPixels( <span class="keyword">false</span> );
<a name="l00047"></a>00047   
<a name="l00048"></a>00048   <span class="comment">//return pointer to edited image</span>
<a name="l00049"></a>00049   <span class="keywordflow">return</span> editedImage;  
<a name="l00050"></a>00050 }
</pre></div>
<p>

</div>
</div><p>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 23 02:34:30 2009 for AlbumShaper by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>