PTdecode/CImg-1.3.0/html/reference/namespacecimg__library_1_1cimg.html

Mon, 03 Aug 2009 14:09:20 +0100

author
Philip Pemberton <philpem@philpem.me.uk>
date
Mon, 03 Aug 2009 14:09:20 +0100
changeset 5
1204ebf9340d
permissions
-rwxr-xr-x

added P-touch decoder source

philpem@5 1 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
philpem@5 2 <head>
philpem@5 3 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
philpem@5 4 <title>The CImg Library - C++ Template Image Processing Toolkit</title>
philpem@5 5 <meta content="David Tschumperle" name="author"></meta>
philpem@5 6 <link rel="shortcut icon" type="image/x-icon" href="http://cimg.sourceforge.net/favicon.ico"></link>
philpem@5 7 <link rel="icon" type="image/png" href="favicon.png"></link>
philpem@5 8 <link href="doxygen.css" rel="stylesheet" type="text/css">
philpem@5 9 <link href="tabs.css" rel="stylesheet" type="text/css">
philpem@5 10 <style type="text/css">
philpem@5 11 <!--
philpem@5 12 body {background-color:white; font-family:sans-serif; }
philpem@5 13 a:active{text-decoration:none; color:#303090}
philpem@5 14 a:link{text-decoration:none; color:#303090}
philpem@5 15 a:visited{text-decoration:none; color:#303090}
philpem@5 16 a:hover{text-decoration:underline; color:#4E9F71}
philpem@5 17 -->
philpem@5 18 </style>
philpem@5 19 <script language="JavaScript" type="text/javascript">
philpem@5 20 <!-- Original: Eric King (eric_andrew_king@hotmail.com) is used to display images in popup windows -->
philpem@5 21 <!-- Web Site: http://redrival.com/eak/ -->
philpem@5 22 <!-- This script and many more are available free online at -->
philpem@5 23 <!-- The JavaScript Source!! http://javascript.internet.com -->
philpem@5 24 <!-- Begin
philpem@5 25 function NewWindow(mypage, myname, w, h, scroll) {
philpem@5 26 var winl = (screen.width - w) / 2;
philpem@5 27 var wint = (screen.height - h) / 2;
philpem@5 28 winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
philpem@5 29 win = window.open(mypage, myname, winprops)
philpem@5 30 if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
philpem@5 31 }
philpem@5 32 // End -->
philpem@5 33 </script>
philpem@5 34 </head>
philpem@5 35 <body>
philpem@5 36 <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
philpem@5 37 <tbody><tr><td>
philpem@5 38 <hr noshade="noshade" size="1" width="90%"></hr>
philpem@5 39 <center>
philpem@5 40 <br/>
philpem@5 41 <a href="http://cimg.sourceforge.net"><img src="http://cimg.sourceforge.net/img/CImgLogo.jpg" alt="" border="0"></img></a><br/>
philpem@5 42 <br/>
philpem@5 43 </center>
philpem@5 44 <hr noshade="noshade" size="1" width="90%"></hr>
philpem@5 45 <center>
philpem@5 46 <table bgcolor="#EEEEFF" style="width: 90%; text-align: left; margin-left: auto; margin-right: auto;" border="0" cellpadding="3" cellspacing="0">
philpem@5 47 <tbody><tr><td style="text-align: center; vertical-align: top;">
philpem@5 48 <font color="#FFFFFF" face="Arial,Helvetica" size="-1">
philpem@5 49 <b>[</b> <a target="_parent" href="http://cimg.sourceforge.net/index.shtml">Main</a> <b>]</b>
philpem@5 50 <b>[</b> <a target="_parent" href="http://cimg.sourceforge.net/news.shtml">News</a><b>] </b>
philpem@5 51 <b>[</b> <a target="_parent" href="http://cimg.sourceforge.net/download.shtml">Download</a> <b>]</b>
philpem@5 52 <b>[</b> <a target="_parent" href="http://cimg.sourceforge.net/screenshots.shtml">Screenshots</a> <b>]</b>
philpem@5 53 <b>[</b> <a target="_parent" href="http://cimg.sourceforge.net/reference/group__cimg__faq.html">FAQ</a> <b>]</b>
philpem@5 54 <b>[</b> <a target="_parent" href="http://cimg.sourceforge.net/reference/group__cimg__tutorial.html">Tutorial</a> <b>]</b>
philpem@5 55 <b>[</b> <a target="_parent" href="http://cimg.sourceforge.net/reference/index.html">Documentation</a> <b>]</b>
philpem@5 56 <b>[</b> <a target="_parent" href="http://sourceforge.net/forum/forum.php?forum_id=334630">Forum</a> <b>]</b>
philpem@5 57 <b>[</b> <a target="_parent" href="http://cimg.sourceforge.net/chat.shtml">Chat</a> <b>]</b>
philpem@5 58 <b>[</b> <a target="_parent" href="http://cimg.sourceforge.net/links.shtml">Links</a> <b>]</b>
philpem@5 59 </font>
philpem@5 60 </td></tr></tbody>
philpem@5 61 </table>
philpem@5 62 </center>
philpem@5 63 <hr noshade="noshade" size="1" width="90%"></hr>
philpem@5 64 </td></tr></tbody>
philpem@5 65 </table>
philpem@5 66 <!-- Generated by Doxygen 1.5.7.1 -->
philpem@5 67 <script type="text/javascript">
philpem@5 68 <!--
philpem@5 69 function changeDisplayState (e){
philpem@5 70 var num=this.id.replace(/[^[0-9]/g,'');
philpem@5 71 var button=this.firstChild;
philpem@5 72 var sectionDiv=document.getElementById('dynsection'+num);
philpem@5 73 if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
philpem@5 74 sectionDiv.style.display='block';
philpem@5 75 button.src='open.gif';
philpem@5 76 }else{
philpem@5 77 sectionDiv.style.display='none';
philpem@5 78 button.src='closed.gif';
philpem@5 79 }
philpem@5 80 }
philpem@5 81 function initDynSections(){
philpem@5 82 var divs=document.getElementsByTagName('div');
philpem@5 83 var sectionCounter=1;
philpem@5 84 for(var i=0;i<divs.length-1;i++){
philpem@5 85 if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
philpem@5 86 var header=divs[i];
philpem@5 87 var section=divs[i+1];
philpem@5 88 var button=header.firstChild;
philpem@5 89 if (button!='IMG'){
philpem@5 90 divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
philpem@5 91 button=document.createElement('img');
philpem@5 92 divs[i].insertBefore(button,divs[i].firstChild);
philpem@5 93 }
philpem@5 94 header.style.cursor='pointer';
philpem@5 95 header.onclick=changeDisplayState;
philpem@5 96 header.id='dynheader'+sectionCounter;
philpem@5 97 button.src='closed.gif';
philpem@5 98 section.id='dynsection'+sectionCounter;
philpem@5 99 section.style.display='none';
philpem@5 100 section.style.marginLeft='14px';
philpem@5 101 sectionCounter++;
philpem@5 102 }
philpem@5 103 }
philpem@5 104 }
philpem@5 105 window.onload = initDynSections;
philpem@5 106 -->
philpem@5 107 </script>
philpem@5 108 <div class="navigation" id="top">
philpem@5 109 <div class="tabs">
philpem@5 110 <ul>
philpem@5 111 <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
philpem@5 112 <li><a href="modules.html"><span>Modules</span></a></li>
philpem@5 113 <li class="current"><a href="namespaces.html"><span>Namespaces</span></a></li>
philpem@5 114 <li><a href="annotated.html"><span>Classes</span></a></li>
philpem@5 115 </ul>
philpem@5 116 </div>
philpem@5 117 <div class="tabs">
philpem@5 118 <ul>
philpem@5 119 <li><a href="namespaces.html"><span>Namespace&nbsp;List</span></a></li>
philpem@5 120 <li><a href="namespacemembers.html"><span>Namespace&nbsp;Members</span></a></li>
philpem@5 121 </ul>
philpem@5 122 </div>
philpem@5 123 <div class="navpath"><a class="el" href="namespacecimg__library.html">cimg_library</a>::<a class="el" href="namespacecimg__library_1_1cimg.html">cimg</a>
philpem@5 124 </div>
philpem@5 125 </div>
philpem@5 126 <div class="contents">
philpem@5 127 <h1>cimg_library::cimg Namespace Reference</h1>Namespace that encompasses <em>low-level</em> functions and variables of the CImg Library.
philpem@5 128 <a href="#_details">More...</a>
philpem@5 129 <p>
philpem@5 130 <table border="0" cellpadding="0" cellspacing="0">
philpem@5 131 <tr><td></td></tr>
philpem@5 132 <tr><td colspan="2"><br><h2>Functions</h2></td></tr>
philpem@5 133 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#c1b66fe77173de9e5e8542b2823d6071">info</a> ()</td></tr>
philpem@5 134
philpem@5 135 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Print informations about CImg environement variables. <a href="#c1b66fe77173de9e5e8542b2823d6071"></a><br></td></tr>
philpem@5 136 <tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#acf66918a1173b3f72fe6f088d94f26b">exception_mode</a> ()</td></tr>
philpem@5 137
philpem@5 138 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get/set the current <a class="el" href="structcimg__library_1_1CImg.html" title="Class representing an image (up to 4 dimensions wide), each pixel being of type T...">CImg</a> exception mode. <a href="#acf66918a1173b3f72fe6f088d94f26b"></a><br></td></tr>
philpem@5 139 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#93ec28267b101050d949d1ebff1b88cf">warn</a> (const char *format,...)</td></tr>
philpem@5 140
philpem@5 141 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Display a warning message. <a href="#93ec28267b101050d949d1ebff1b88cf"></a><br></td></tr>
philpem@5 142 <tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#09e80f4d7a95f3d5c2282202d8526520">system</a> (const char *const command, const char *const module_name=0)</td></tr>
philpem@5 143
philpem@5 144 <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="f3bb87016460121409a8f1a2ebe418b1"></a><!-- doxytag: member="cimg_library::cimg::temporary" ref="f3bb87016460121409a8f1a2ebe418b1" args="(const T &amp;)" -->
philpem@5 145 template&lt;typename T &gt; </td></tr>
philpem@5 146 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T &amp;&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#f3bb87016460121409a8f1a2ebe418b1">temporary</a> (const T &amp;)</td></tr>
philpem@5 147
philpem@5 148 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return a reference to a temporary variable of type T. <br></td></tr>
philpem@5 149 <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="998ee77cc062d63b4faa62eb659e6e9a"></a><!-- doxytag: member="cimg_library::cimg::swap" ref="998ee77cc062d63b4faa62eb659e6e9a" args="(T &amp;a, T &amp;b)" -->
philpem@5 150 template&lt;typename T &gt; </td></tr>
philpem@5 151 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#998ee77cc062d63b4faa62eb659e6e9a">swap</a> (T &amp;a, T &amp;b)</td></tr>
philpem@5 152
philpem@5 153 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Exchange values of variables <code>a</code> and <code>b</code>. <br></td></tr>
philpem@5 154 <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="2b733fa20def6d955d5f3b1a742b2a0e"></a><!-- doxytag: member="cimg_library::cimg::swap" ref="2b733fa20def6d955d5f3b1a742b2a0e" args="(T1 &amp;a1, T1 &amp;b1, T2 &amp;a2, T2 &amp;b2)" -->
philpem@5 155 template&lt;typename T1 , typename T2 &gt; </td></tr>
philpem@5 156 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#2b733fa20def6d955d5f3b1a742b2a0e">swap</a> (T1 &amp;a1, T1 &amp;b1, T2 &amp;a2, T2 &amp;b2)</td></tr>
philpem@5 157
philpem@5 158 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Exchange values of variables (<code>a1</code>,<code>a2</code>) and (<code>b1</code>,<code>b2</code>). <br></td></tr>
philpem@5 159 <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="4954a1551001dc082044597dc9fdcbc3"></a><!-- doxytag: member="cimg_library::cimg::swap" ref="4954a1551001dc082044597dc9fdcbc3" args="(T1 &amp;a1, T1 &amp;b1, T2 &amp;a2, T2 &amp;b2, T3 &amp;a3, T3 &amp;b3)" -->
philpem@5 160 template&lt;typename T1 , typename T2 , typename T3 &gt; </td></tr>
philpem@5 161 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#4954a1551001dc082044597dc9fdcbc3">swap</a> (T1 &amp;a1, T1 &amp;b1, T2 &amp;a2, T2 &amp;b2, T3 &amp;a3, T3 &amp;b3)</td></tr>
philpem@5 162
philpem@5 163 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Exchange values of variables (<code>a1</code>,<code>a2</code>,<code>a3</code>) and (<code>b1</code>,<code>b2</code>,<code>b3</code>). <br></td></tr>
philpem@5 164 <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="1e3369e3c4141ff696432f35ec075379"></a><!-- doxytag: member="cimg_library::cimg::swap" ref="1e3369e3c4141ff696432f35ec075379" args="(T1 &amp;a1, T1 &amp;b1, T2 &amp;a2, T2 &amp;b2, T3 &amp;a3, T3 &amp;b3, T4 &amp;a4, T4 &amp;b4)" -->
philpem@5 165 template&lt;typename T1 , typename T2 , typename T3 , typename T4 &gt; </td></tr>
philpem@5 166 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#1e3369e3c4141ff696432f35ec075379">swap</a> (T1 &amp;a1, T1 &amp;b1, T2 &amp;a2, T2 &amp;b2, T3 &amp;a3, T3 &amp;b3, T4 &amp;a4, T4 &amp;b4)</td></tr>
philpem@5 167
philpem@5 168 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Exchange values of variables (<code>a1</code>,<code>a2</code>,...,<code>a4</code>) and (<code>b1</code>,<code>b2</code>,...,<code>b4</code>). <br></td></tr>
philpem@5 169 <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="635ae52148ed9edf9aeda5e81bc58884"></a><!-- doxytag: member="cimg_library::cimg::swap" ref="635ae52148ed9edf9aeda5e81bc58884" args="(T1 &amp;a1, T1 &amp;b1, T2 &amp;a2, T2 &amp;b2, T3 &amp;a3, T3 &amp;b3, T4 &amp;a4, T4 &amp;b4, T5 &amp;a5, T5 &amp;b5)" -->
philpem@5 170 template&lt;typename T1 , typename T2 , typename T3 , typename T4 , typename T5 &gt; </td></tr>
philpem@5 171 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#635ae52148ed9edf9aeda5e81bc58884">swap</a> (T1 &amp;a1, T1 &amp;b1, T2 &amp;a2, T2 &amp;b2, T3 &amp;a3, T3 &amp;b3, T4 &amp;a4, T4 &amp;b4, T5 &amp;a5, T5 &amp;b5)</td></tr>
philpem@5 172
philpem@5 173 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Exchange values of variables (<code>a1</code>,<code>a2</code>,...,<code>a5</code>) and (<code>b1</code>,<code>b2</code>,...,<code>b5</code>). <br></td></tr>
philpem@5 174 <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="bf3d1cd948fdbc06ba7e9b83a7169d33"></a><!-- doxytag: member="cimg_library::cimg::swap" ref="bf3d1cd948fdbc06ba7e9b83a7169d33" args="(T1 &amp;a1, T1 &amp;b1, T2 &amp;a2, T2 &amp;b2, T3 &amp;a3, T3 &amp;b3, T4 &amp;a4, T4 &amp;b4, T5 &amp;a5, T5 &amp;b5, T6 &amp;a6, T6 &amp;b6)" -->
philpem@5 175 template&lt;typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 &gt; </td></tr>
philpem@5 176 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#bf3d1cd948fdbc06ba7e9b83a7169d33">swap</a> (T1 &amp;a1, T1 &amp;b1, T2 &amp;a2, T2 &amp;b2, T3 &amp;a3, T3 &amp;b3, T4 &amp;a4, T4 &amp;b4, T5 &amp;a5, T5 &amp;b5, T6 &amp;a6, T6 &amp;b6)</td></tr>
philpem@5 177
philpem@5 178 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Exchange values of variables (<code>a1</code>,<code>a2</code>,...,<code>a6</code>) and (<code>b1</code>,<code>b2</code>,...,<code>b6</code>). <br></td></tr>
philpem@5 179 <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="40c508097e570855c68bc944249ecf59"></a><!-- doxytag: member="cimg_library::cimg::swap" ref="40c508097e570855c68bc944249ecf59" args="(T1 &amp;a1, T1 &amp;b1, T2 &amp;a2, T2 &amp;b2, T3 &amp;a3, T3 &amp;b3, T4 &amp;a4, T4 &amp;b4, T5 &amp;a5, T5 &amp;b5, T6 &amp;a6, T6 &amp;b6, T7 &amp;a7, T7 &amp;b7)" -->
philpem@5 180 template&lt;typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 &gt; </td></tr>
philpem@5 181 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#40c508097e570855c68bc944249ecf59">swap</a> (T1 &amp;a1, T1 &amp;b1, T2 &amp;a2, T2 &amp;b2, T3 &amp;a3, T3 &amp;b3, T4 &amp;a4, T4 &amp;b4, T5 &amp;a5, T5 &amp;b5, T6 &amp;a6, T6 &amp;b6, T7 &amp;a7, T7 &amp;b7)</td></tr>
philpem@5 182
philpem@5 183 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Exchange values of variables (<code>a1</code>,<code>a2</code>,...,<code>a7</code>) and (<code>b1</code>,<code>b2</code>,...,<code>b7</code>). <br></td></tr>
philpem@5 184 <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="ad6384858c4ccd23b249c370ccb2ed1d"></a><!-- doxytag: member="cimg_library::cimg::swap" ref="ad6384858c4ccd23b249c370ccb2ed1d" args="(T1 &amp;a1, T1 &amp;b1, T2 &amp;a2, T2 &amp;b2, T3 &amp;a3, T3 &amp;b3, T4 &amp;a4, T4 &amp;b4, T5 &amp;a5, T5 &amp;b5, T6 &amp;a6, T6 &amp;b6, T7 &amp;a7, T7 &amp;b7, T8 &amp;a8, T8 &amp;b8)" -->
philpem@5 185 template&lt;typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 &gt; </td></tr>
philpem@5 186 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#ad6384858c4ccd23b249c370ccb2ed1d">swap</a> (T1 &amp;a1, T1 &amp;b1, T2 &amp;a2, T2 &amp;b2, T3 &amp;a3, T3 &amp;b3, T4 &amp;a4, T4 &amp;b4, T5 &amp;a5, T5 &amp;b5, T6 &amp;a6, T6 &amp;b6, T7 &amp;a7, T7 &amp;b7, T8 &amp;a8, T8 &amp;b8)</td></tr>
philpem@5 187
philpem@5 188 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Exchange values of variables (<code>a1</code>,<code>a2</code>,...,<code>a8</code>) and (<code>b1</code>,<code>b2</code>,...,<code>b8</code>). <br></td></tr>
philpem@5 189 <tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#0d2a283a3aa2572e9d343f040c8c4c6b">endianness</a> ()</td></tr>
philpem@5 190
philpem@5 191 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the current endianness of the CPU. <a href="#0d2a283a3aa2572e9d343f040c8c4c6b"></a><br></td></tr>
philpem@5 192 <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="565abb2900eedfc3700ec2a87986bb89"></a><!-- doxytag: member="cimg_library::cimg::invert_endianness" ref="565abb2900eedfc3700ec2a87986bb89" args="(T *const buffer, const unsigned int size)" -->
philpem@5 193 template&lt;typename T &gt; </td></tr>
philpem@5 194 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#565abb2900eedfc3700ec2a87986bb89">invert_endianness</a> (T *const buffer, const unsigned int size)</td></tr>
philpem@5 195
philpem@5 196 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Invert endianness of a memory buffer. <br></td></tr>
philpem@5 197 <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="772f6feda6762af936e12436a26e40a3"></a><!-- doxytag: member="cimg_library::cimg::invert_endianness" ref="772f6feda6762af936e12436a26e40a3" args="(T &amp;a)" -->
philpem@5 198 template&lt;typename T &gt; </td></tr>
philpem@5 199 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T &amp;&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#772f6feda6762af936e12436a26e40a3">invert_endianness</a> (T &amp;a)</td></tr>
philpem@5 200
philpem@5 201 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Invert endianness of a single variable. <br></td></tr>
philpem@5 202 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f883131bbc64e996d212114cc2b2b21a"></a><!-- doxytag: member="cimg_library::cimg::time" ref="f883131bbc64e996d212114cc2b2b21a" args="()" -->
philpem@5 203 unsigned long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#f883131bbc64e996d212114cc2b2b21a">time</a> ()</td></tr>
philpem@5 204
philpem@5 205 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the value of a system timer with a millisecond precision. <br></td></tr>
philpem@5 206 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#3ac7655e49556a90715f3532af221334">sleep</a> (const unsigned int milliseconds)</td></tr>
philpem@5 207
philpem@5 208 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sleep for a certain numbers of milliseconds. <a href="#3ac7655e49556a90715f3532af221334"></a><br></td></tr>
philpem@5 209 <tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#3c8917c0f12139bff6de6e3e45fc5b77">wait</a> (const unsigned int milliseconds)</td></tr>
philpem@5 210
philpem@5 211 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Wait for a certain number of milliseconds since the last call. <a href="#3c8917c0f12139bff6de6e3e45fc5b77"></a><br></td></tr>
philpem@5 212 <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="964b7bf56de9cba321b402ab86db3ff7"></a><!-- doxytag: member="cimg_library::cimg::rol" ref="964b7bf56de9cba321b402ab86db3ff7" args="(const T a, const unsigned int n=1)" -->
philpem@5 213 template&lt;typename T &gt; </td></tr>
philpem@5 214 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">const T&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#964b7bf56de9cba321b402ab86db3ff7">rol</a> (const T a, const unsigned int n=1)</td></tr>
philpem@5 215
philpem@5 216 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return a left bitwise-rotated number. <br></td></tr>
philpem@5 217 <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="62fd3ab82b98aa857fcf5f3fbd7c8b99"></a><!-- doxytag: member="cimg_library::cimg::ror" ref="62fd3ab82b98aa857fcf5f3fbd7c8b99" args="(const T a, const unsigned int n=1)" -->
philpem@5 218 template&lt;typename T &gt; </td></tr>
philpem@5 219 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">const T&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#62fd3ab82b98aa857fcf5f3fbd7c8b99">ror</a> (const T a, const unsigned int n=1)</td></tr>
philpem@5 220
philpem@5 221 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return a right bitwise-rotated number. <br></td></tr>
philpem@5 222 <tr><td class="memTemplParams" nowrap colspan="2">template&lt;typename T &gt; </td></tr>
philpem@5 223 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#5dd0a4d361e2db646f5042be6bfe1d31">abs</a> (const T a)</td></tr>
philpem@5 224
philpem@5 225 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the absolute value of a number. <a href="#5dd0a4d361e2db646f5042be6bfe1d31"></a><br></td></tr>
philpem@5 226 <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="415ccb3d8d3cf2e7bbdca6fa18ed3465"></a><!-- doxytag: member="cimg_library::cimg::sqr" ref="415ccb3d8d3cf2e7bbdca6fa18ed3465" args="(const T val)" -->
philpem@5 227 template&lt;typename T &gt; </td></tr>
philpem@5 228 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#415ccb3d8d3cf2e7bbdca6fa18ed3465">sqr</a> (const T val)</td></tr>
philpem@5 229
philpem@5 230 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the square of a number. <br></td></tr>
philpem@5 231 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8dde183be46c1821a3901b63825a4cf4"></a><!-- doxytag: member="cimg_library::cimg::xln" ref="8dde183be46c1821a3901b63825a4cf4" args="(const int x)" -->
philpem@5 232 int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#8dde183be46c1821a3901b63825a4cf4">xln</a> (const int x)</td></tr>
philpem@5 233
philpem@5 234 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return 1 + log_10(x). <br></td></tr>
philpem@5 235 <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="0659abebd7019433a254dd8d934ed32c"></a><!-- doxytag: member="cimg_library::cimg::min" ref="0659abebd7019433a254dd8d934ed32c" args="(const t1 &amp;a, const t2 &amp;b)" -->
philpem@5 236 template&lt;typename t1 , typename t2 &gt; </td></tr>
philpem@5 237 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">cimg::superset&lt; t1, t2 &gt;::type&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#0659abebd7019433a254dd8d934ed32c">min</a> (const t1 &amp;a, const t2 &amp;b)</td></tr>
philpem@5 238
philpem@5 239 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the minimum value between two numbers. <br></td></tr>
philpem@5 240 <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="65e023d29962d5b7239540affa01c934"></a><!-- doxytag: member="cimg_library::cimg::min" ref="65e023d29962d5b7239540affa01c934" args="(const t1 &amp;a, const t2 &amp;b, const t3 &amp;c)" -->
philpem@5 241 template&lt;typename t1 , typename t2 , typename t3 &gt; </td></tr>
philpem@5 242 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">cimg::superset2&lt; t1, t2, t3 &gt;::type&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#65e023d29962d5b7239540affa01c934">min</a> (const t1 &amp;a, const t2 &amp;b, const t3 &amp;c)</td></tr>
philpem@5 243
philpem@5 244 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the minimum value between three numbers. <br></td></tr>
philpem@5 245 <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="11ac2edf216d6e3085207fbef99c8a10"></a><!-- doxytag: member="cimg_library::cimg::min" ref="11ac2edf216d6e3085207fbef99c8a10" args="(const t1 &amp;a, const t2 &amp;b, const t3 &amp;c, const t4 &amp;d)" -->
philpem@5 246 template&lt;typename t1 , typename t2 , typename t3 , typename t4 &gt; </td></tr>
philpem@5 247 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">cimg::superset3&lt; t1, t2, t3, <br class="typebreak">
philpem@5 248 t4 &gt;::type&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#11ac2edf216d6e3085207fbef99c8a10">min</a> (const t1 &amp;a, const t2 &amp;b, const t3 &amp;c, const t4 &amp;d)</td></tr>
philpem@5 249
philpem@5 250 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the minimum value between four numbers. <br></td></tr>
philpem@5 251 <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="ef8f304ef317aed250bbb0dc2b242969"></a><!-- doxytag: member="cimg_library::cimg::max" ref="ef8f304ef317aed250bbb0dc2b242969" args="(const t1 &amp;a, const t2 &amp;b)" -->
philpem@5 252 template&lt;typename t1 , typename t2 &gt; </td></tr>
philpem@5 253 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">cimg::superset&lt; t1, t2 &gt;::type&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#ef8f304ef317aed250bbb0dc2b242969">max</a> (const t1 &amp;a, const t2 &amp;b)</td></tr>
philpem@5 254
philpem@5 255 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the maximum value between two numbers. <br></td></tr>
philpem@5 256 <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="3c809a146579b9d7633f5c67d1d0c04a"></a><!-- doxytag: member="cimg_library::cimg::max" ref="3c809a146579b9d7633f5c67d1d0c04a" args="(const t1 &amp;a, const t2 &amp;b, const t3 &amp;c)" -->
philpem@5 257 template&lt;typename t1 , typename t2 , typename t3 &gt; </td></tr>
philpem@5 258 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">cimg::superset2&lt; t1, t2, t3 &gt;::type&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#3c809a146579b9d7633f5c67d1d0c04a">max</a> (const t1 &amp;a, const t2 &amp;b, const t3 &amp;c)</td></tr>
philpem@5 259
philpem@5 260 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the maximum value between three numbers. <br></td></tr>
philpem@5 261 <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="c118d1956b491c6e79aa0c34ffd038dd"></a><!-- doxytag: member="cimg_library::cimg::max" ref="c118d1956b491c6e79aa0c34ffd038dd" args="(const t1 &amp;a, const t2 &amp;b, const t3 &amp;c, const t4 &amp;d)" -->
philpem@5 262 template&lt;typename t1 , typename t2 , typename t3 , typename t4 &gt; </td></tr>
philpem@5 263 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">cimg::superset3&lt; t1, t2, t3, <br class="typebreak">
philpem@5 264 t4 &gt;::type&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#c118d1956b491c6e79aa0c34ffd038dd">max</a> (const t1 &amp;a, const t2 &amp;b, const t3 &amp;c, const t4 &amp;d)</td></tr>
philpem@5 265
philpem@5 266 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the maximum value between four numbers. <br></td></tr>
philpem@5 267 <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="cb00b9ea45d7c523af71071eaad2fd98"></a><!-- doxytag: member="cimg_library::cimg::sign" ref="cb00b9ea45d7c523af71071eaad2fd98" args="(const T x)" -->
philpem@5 268 template&lt;typename T &gt; </td></tr>
philpem@5 269 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#cb00b9ea45d7c523af71071eaad2fd98">sign</a> (const T x)</td></tr>
philpem@5 270
philpem@5 271 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the sign of a number. <br></td></tr>
philpem@5 272 <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="2d817bb30160ae25fde49bd14db5a7e6"></a><!-- doxytag: member="cimg_library::cimg::nearest_pow2" ref="2d817bb30160ae25fde49bd14db5a7e6" args="(const T x)" -->
philpem@5 273 template&lt;typename T &gt; </td></tr>
philpem@5 274 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">unsigned long&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#2d817bb30160ae25fde49bd14db5a7e6">nearest_pow2</a> (const T x)</td></tr>
philpem@5 275
philpem@5 276 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the nearest power of 2 higher than a given number. <br></td></tr>
philpem@5 277 <tr><td class="memTemplParams" nowrap colspan="2">template&lt;typename T &gt; </td></tr>
philpem@5 278 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#85970edf9afb3b48c0715fadf917854e">mod</a> (const T &amp;x, const T &amp;m)</td></tr>
philpem@5 279
philpem@5 280 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the modulo of a number. <a href="#85970edf9afb3b48c0715fadf917854e"></a><br></td></tr>
philpem@5 281 <tr><td class="memTemplParams" nowrap colspan="2">template&lt;typename T &gt; </td></tr>
philpem@5 282 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#e2bab18e9272641210d8b2d7e4a4503f">minmod</a> (const T a, const T b)</td></tr>
philpem@5 283
philpem@5 284 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the minmod of two numbers. <a href="#e2bab18e9272641210d8b2d7e4a4503f"></a><br></td></tr>
philpem@5 285 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f31db729637ea4dad61e49e5729839c4"></a><!-- doxytag: member="cimg_library::cimg::rand" ref="f31db729637ea4dad61e49e5729839c4" args="()" -->
philpem@5 286 double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#f31db729637ea4dad61e49e5729839c4">rand</a> ()</td></tr>
philpem@5 287
philpem@5 288 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return a random variable between [0,1] with respect to an uniform distribution. <br></td></tr>
philpem@5 289 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ae82972570fdc0904d4f03df7b5d3023"></a><!-- doxytag: member="cimg_library::cimg::crand" ref="ae82972570fdc0904d4f03df7b5d3023" args="()" -->
philpem@5 290 double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#ae82972570fdc0904d4f03df7b5d3023">crand</a> ()</td></tr>
philpem@5 291
philpem@5 292 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return a random variable between [-1,1] with respect to an uniform distribution. <br></td></tr>
philpem@5 293 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0341a323738439349625b2de5f35bb4c"></a><!-- doxytag: member="cimg_library::cimg::grand" ref="0341a323738439349625b2de5f35bb4c" args="()" -->
philpem@5 294 double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#0341a323738439349625b2de5f35bb4c">grand</a> ()</td></tr>
philpem@5 295
philpem@5 296 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return a random variable following a gaussian distribution and a standard deviation of 1. <br></td></tr>
philpem@5 297 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7f927973e2bc17b851bb61cdfbfef061"></a><!-- doxytag: member="cimg_library::cimg::prand" ref="7f927973e2bc17b851bb61cdfbfef061" args="(const double z)" -->
philpem@5 298 unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#7f927973e2bc17b851bb61cdfbfef061">prand</a> (const double z)</td></tr>
philpem@5 299
philpem@5 300 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return a random variable following a Poisson distribution of parameter z. <br></td></tr>
philpem@5 301 <tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#0bfd704cc09f4a25f09035b067aca4e3">round</a> (const double x, const double y, const int rounding_type=0)</td></tr>
philpem@5 302
philpem@5 303 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return a rounded number. <a href="#0bfd704cc09f4a25f09035b067aca4e3"></a><br></td></tr>
philpem@5 304 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5a028d4d4de4e1894263a29a6de8e2ee"></a><!-- doxytag: member="cimg_library::cimg::uncase" ref="5a028d4d4de4e1894263a29a6de8e2ee" args="(const char x)" -->
philpem@5 305 char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#5a028d4d4de4e1894263a29a6de8e2ee">uncase</a> (const char x)</td></tr>
philpem@5 306
philpem@5 307 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Remove the 'case' of an ASCII character. <br></td></tr>
philpem@5 308 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#eec70054768b152c0dbea51f5a56536b">uncase</a> (char *const string)</td></tr>
philpem@5 309
philpem@5 310 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Remove the 'case' of a C string. <a href="#eec70054768b152c0dbea51f5a56536b"></a><br></td></tr>
philpem@5 311 <tr><td class="memItemLeft" nowrap align="right" valign="top">float&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#9ab0fcc7ef1bac330897fec51f617ae6">atof</a> (const char *const str)</td></tr>
philpem@5 312
philpem@5 313 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Read a float number from a C-string. <a href="#9ab0fcc7ef1bac330897fec51f617ae6"></a><br></td></tr>
philpem@5 314 <tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#3f65ad0f35bbbfc7ec197ce32f326da2">strlen</a> (const char *const s)</td></tr>
philpem@5 315
philpem@5 316 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute the length of a C-string. <a href="#3f65ad0f35bbbfc7ec197ce32f326da2"></a><br></td></tr>
philpem@5 317 <tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#efc1425e963cd56d8a926908749119a5">strncmp</a> (const char *const s1, const char *const s2, const int l)</td></tr>
philpem@5 318
philpem@5 319 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare the first <code>n</code> characters of two C-strings. <a href="#efc1425e963cd56d8a926908749119a5"></a><br></td></tr>
philpem@5 320 <tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#747de40c911c42d60e1a4ee3f0c69c6c">strncasecmp</a> (const char *const s1, const char *const s2, const int l)</td></tr>
philpem@5 321
philpem@5 322 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare the first <code>n</code> characters of two C-strings, ignoring the case. <a href="#747de40c911c42d60e1a4ee3f0c69c6c"></a><br></td></tr>
philpem@5 323 <tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#aab723edb9b070b285367e7ffc099d78">strcmp</a> (const char *const s1, const char *const s2)</td></tr>
philpem@5 324
philpem@5 325 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two C-strings. <a href="#aab723edb9b070b285367e7ffc099d78"></a><br></td></tr>
philpem@5 326 <tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#43334b3df38ff7c4369a503a4fc3a9f9">strcasecmp</a> (const char *const s1, const char *const s2)</td></tr>
philpem@5 327
philpem@5 328 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two C-strings, ignoring the case. <a href="#43334b3df38ff7c4369a503a4fc3a9f9"></a><br></td></tr>
philpem@5 329 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2f127d56499b955c44ab1e5963d04c8c"></a><!-- doxytag: member="cimg_library::cimg::strfind" ref="2f127d56499b955c44ab1e5963d04c8c" args="(const char *const s, const char c)" -->
philpem@5 330 int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#2f127d56499b955c44ab1e5963d04c8c">strfind</a> (const char *const s, const char c)</td></tr>
philpem@5 331
philpem@5 332 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find a character in a C-string. <br></td></tr>
philpem@5 333 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="75c2af1ba1b514bd547f9b23745b125c"></a><!-- doxytag: member="cimg_library::cimg::strpare" ref="75c2af1ba1b514bd547f9b23745b125c" args="(char *const s, const char delimiter=' ', const bool symmetric=false)" -->
philpem@5 334 bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#75c2af1ba1b514bd547f9b23745b125c">strpare</a> (char *const s, const char delimiter=' ', const bool symmetric=false)</td></tr>
philpem@5 335
philpem@5 336 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Remove useless delimiters on the borders of a C-string. <br></td></tr>
philpem@5 337 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7199326277681bfe958fc21a508897e2"></a><!-- doxytag: member="cimg_library::cimg::strclean" ref="7199326277681bfe958fc21a508897e2" args="(char *const s)" -->
philpem@5 338 void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#7199326277681bfe958fc21a508897e2">strclean</a> (char *const s)</td></tr>
philpem@5 339
philpem@5 340 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Remove useless spaces and symmetric delimiters ', " and ` from a C-string. <br></td></tr>
philpem@5 341 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7710ef1683aa12ead974583b764cd353"></a><!-- doxytag: member="cimg_library::cimg::strescape" ref="7710ef1683aa12ead974583b764cd353" args="(char *const s)" -->
philpem@5 342 void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#7710ef1683aa12ead974583b764cd353">strescape</a> (char *const s)</td></tr>
philpem@5 343
philpem@5 344 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Replace explicit escape sequences '' in C-strings (where x in [ntvbrfa?'"0]). <br></td></tr>
philpem@5 345 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bc491a5ed3a8d97e395138a379767a45"></a><!-- doxytag: member="cimg_library::cimg::basename" ref="bc491a5ed3a8d97e395138a379767a45" args="(const char *const s)" -->
philpem@5 346 const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#bc491a5ed3a8d97e395138a379767a45">basename</a> (const char *const s)</td></tr>
philpem@5 347
philpem@5 348 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute the basename of a filename. <br></td></tr>
philpem@5 349 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="797797a309ca40aa28cdfbb92f4d1621"></a><!-- doxytag: member="cimg_library::cimg::temporary_path" ref="797797a309ca40aa28cdfbb92f4d1621" args="(const char *const user_path=0, const bool reinit_path=false)" -->
philpem@5 350 const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#797797a309ca40aa28cdfbb92f4d1621">temporary_path</a> (const char *const user_path=0, const bool reinit_path=false)</td></tr>
philpem@5 351
philpem@5 352 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return or set path to store temporary files. <br></td></tr>
philpem@5 353 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d0db1003e37cc111d9eddd282c1ab27b"></a><!-- doxytag: member="cimg_library::cimg::imagemagick_path" ref="d0db1003e37cc111d9eddd282c1ab27b" args="(const char *const user_path=0, const bool reinit_path=false)" -->
philpem@5 354 const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#d0db1003e37cc111d9eddd282c1ab27b">imagemagick_path</a> (const char *const user_path=0, const bool reinit_path=false)</td></tr>
philpem@5 355
philpem@5 356 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return or set path to the ImageMagick's <code>convert</code> tool. <br></td></tr>
philpem@5 357 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a9f7e166f51b43facc8ecc9f05e4ceba"></a><!-- doxytag: member="cimg_library::cimg::graphicsmagick_path" ref="a9f7e166f51b43facc8ecc9f05e4ceba" args="(const char *const user_path=0, const bool reinit_path=false)" -->
philpem@5 358 const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#a9f7e166f51b43facc8ecc9f05e4ceba">graphicsmagick_path</a> (const char *const user_path=0, const bool reinit_path=false)</td></tr>
philpem@5 359
philpem@5 360 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return path of the GraphicsMagick's <code>gm</code> tool. <br></td></tr>
philpem@5 361 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="aedba1291890f50edb5be58ef662e516"></a><!-- doxytag: member="cimg_library::cimg::medcon_path" ref="aedba1291890f50edb5be58ef662e516" args="(const char *const user_path=0, const bool reinit_path=false)" -->
philpem@5 362 const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#aedba1291890f50edb5be58ef662e516">medcon_path</a> (const char *const user_path=0, const bool reinit_path=false)</td></tr>
philpem@5 363
philpem@5 364 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return or set path of the <code>XMedcon</code> tool. <br></td></tr>
philpem@5 365 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bf1666b982cb372129f2ae2fdc748ef2"></a><!-- doxytag: member="cimg_library::cimg::ffmpeg_path" ref="bf1666b982cb372129f2ae2fdc748ef2" args="(const char *const user_path=0, const bool reinit_path=false)" -->
philpem@5 366 const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#bf1666b982cb372129f2ae2fdc748ef2">ffmpeg_path</a> (const char *const user_path=0, const bool reinit_path=false)</td></tr>
philpem@5 367
philpem@5 368 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return or set path to the 'ffmpeg' command. <br></td></tr>
philpem@5 369 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="75f3391e7a393c1c1fe43537004537e2"></a><!-- doxytag: member="cimg_library::cimg::gzip_path" ref="75f3391e7a393c1c1fe43537004537e2" args="(const char *const user_path=0, const bool reinit_path=false)" -->
philpem@5 370 const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#75f3391e7a393c1c1fe43537004537e2">gzip_path</a> (const char *const user_path=0, const bool reinit_path=false)</td></tr>
philpem@5 371
philpem@5 372 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return or set path to the 'gzip' command. <br></td></tr>
philpem@5 373 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="08f71c29acfe85d5b8718900e995b779"></a><!-- doxytag: member="cimg_library::cimg::gunzip_path" ref="08f71c29acfe85d5b8718900e995b779" args="(const char *const user_path=0, const bool reinit_path=false)" -->
philpem@5 374 const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#08f71c29acfe85d5b8718900e995b779">gunzip_path</a> (const char *const user_path=0, const bool reinit_path=false)</td></tr>
philpem@5 375
philpem@5 376 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return or set path to the 'gunzip' command. <br></td></tr>
philpem@5 377 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e36d7a689692ac5663afe1bbdab5d9fa"></a><!-- doxytag: member="cimg_library::cimg::dcraw_path" ref="e36d7a689692ac5663afe1bbdab5d9fa" args="(const char *const user_path=0, const bool reinit_path=false)" -->
philpem@5 378 const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#e36d7a689692ac5663afe1bbdab5d9fa">dcraw_path</a> (const char *const user_path=0, const bool reinit_path=false)</td></tr>
philpem@5 379
philpem@5 380 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return or set path to the 'dcraw' command. <br></td></tr>
philpem@5 381 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9f7068ec0354e0b34a69a9dc829598aa"></a><!-- doxytag: member="cimg_library::cimg::split_filename" ref="9f7068ec0354e0b34a69a9dc829598aa" args="(const char *const filename, char *const body=0)" -->
philpem@5 382 const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#9f7068ec0354e0b34a69a9dc829598aa">split_filename</a> (const char *const filename, char *const body=0)</td></tr>
philpem@5 383
philpem@5 384 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Split a filename into two strings 'body' and 'extension'. <br></td></tr>
philpem@5 385 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="878d8296e87c4ddae1676158e40cbd3a"></a><!-- doxytag: member="cimg_library::cimg::number_filename" ref="878d8296e87c4ddae1676158e40cbd3a" args="(const char *const filename, const int number, const unsigned int n, char *const string)" -->
philpem@5 386 char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#878d8296e87c4ddae1676158e40cbd3a">number_filename</a> (const char *const filename, const int number, const unsigned int n, char *const string)</td></tr>
philpem@5 387
philpem@5 388 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a numbered version of a filename. <br></td></tr>
philpem@5 389 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="dff1045b64c40864232f07ec686fa731"></a><!-- doxytag: member="cimg_library::cimg::fopen" ref="dff1045b64c40864232f07ec686fa731" args="(const char *const path, const char *const mode)" -->
philpem@5 390 cimg_std::FILE *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#dff1045b64c40864232f07ec686fa731">fopen</a> (const char *const path, const char *const mode)</td></tr>
philpem@5 391
philpem@5 392 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Open a file, and check for possible errors. <br></td></tr>
philpem@5 393 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e381e63cfec4d6d2426a2763c05a094f"></a><!-- doxytag: member="cimg_library::cimg::fclose" ref="e381e63cfec4d6d2426a2763c05a094f" args="(cimg_std::FILE *file)" -->
philpem@5 394 int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#e381e63cfec4d6d2426a2763c05a094f">fclose</a> (cimg_std::FILE *file)</td></tr>
philpem@5 395
philpem@5 396 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Close a file, and check for possible errors. <br></td></tr>
philpem@5 397 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="69b9fcf4cc4ef26506e3a35d8db2cb74"></a><!-- doxytag: member="cimg_library::cimg::file_type" ref="69b9fcf4cc4ef26506e3a35d8db2cb74" args="(cimg_std::FILE *const file, const char *const filename)" -->
philpem@5 398 const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#69b9fcf4cc4ef26506e3a35d8db2cb74">file_type</a> (cimg_std::FILE *const file, const char *const filename)</td></tr>
philpem@5 399
philpem@5 400 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Try to guess the image format of a filename, using its magick numbers. <br></td></tr>
philpem@5 401 <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="ae720b10098f87a24c8756e63c48b49a"></a><!-- doxytag: member="cimg_library::cimg::fread" ref="ae720b10098f87a24c8756e63c48b49a" args="(T *const ptr, const unsigned int nmemb, cimg_std::FILE *stream)" -->
philpem@5 402 template&lt;typename T &gt; </td></tr>
philpem@5 403 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#ae720b10098f87a24c8756e63c48b49a">fread</a> (T *const ptr, const unsigned int nmemb, cimg_std::FILE *stream)</td></tr>
philpem@5 404
philpem@5 405 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Read file data, and check for possible errors. <br></td></tr>
philpem@5 406 <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="b57bdbf463552372e18a7dda032c3054"></a><!-- doxytag: member="cimg_library::cimg::fwrite" ref="b57bdbf463552372e18a7dda032c3054" args="(const T *ptr, const unsigned int nmemb, cimg_std::FILE *stream)" -->
philpem@5 407 template&lt;typename T &gt; </td></tr>
philpem@5 408 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#b57bdbf463552372e18a7dda032c3054">fwrite</a> (const T *ptr, const unsigned int nmemb, cimg_std::FILE *stream)</td></tr>
philpem@5 409
philpem@5 410 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Write data to a file, and check for possible errors. <br></td></tr>
philpem@5 411 <tr><td class="memTemplParams" nowrap colspan="2">template&lt;typename t &gt; </td></tr>
philpem@5 412 <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#9bd2a1e3ffff4538c4f53856e8b28ded">dialog</a> (const char *title, const char *msg, const char *button1_txt, const char *button2_txt, const char *button3_txt, const char *button4_txt, const char *button5_txt, const char *button6_txt, const <a class="el" href="structcimg__library_1_1CImg.html">CImg</a>&lt; t &gt; &amp;logo, const bool centering=false)</td></tr>
philpem@5 413
philpem@5 414 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Display a dialog box, where a user can click standard buttons. <a href="#9bd2a1e3ffff4538c4f53856e8b28ded"></a><br></td></tr>
philpem@5 415 <tr><td colspan="2"><br><h2>Variables</h2></td></tr>
philpem@5 416 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0227707be3c6c40e2f71806077fbfcdb"></a><!-- doxytag: member="cimg_library::cimg::valuePI" ref="0227707be3c6c40e2f71806077fbfcdb" args="" -->
philpem@5 417 const double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#0227707be3c6c40e2f71806077fbfcdb">valuePI</a> = 3.14159265358979323846</td></tr>
philpem@5 418
philpem@5 419 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Definition of the mathematical constant PI. <br></td></tr>
philpem@5 420 </table>
philpem@5 421 <hr><a name="_details"></a><h2>Detailed Description</h2>
philpem@5 422 Namespace that encompasses <em>low-level</em> functions and variables of the CImg Library.
philpem@5 423 <p>
philpem@5 424 Most of the functions and variables within this namespace are used by the library for low-level processing. Nevertheless, documented variables and functions of this namespace may be used safely in your own source code.<p>
philpem@5 425 <dl class="warning" compact><dt><b>Warning:</b></dt><dd>Never write <code>using namespace <a class="el" href="namespacecimg__library_1_1cimg.html" title="Namespace that encompasses low-level functions and variables of the CImg Library...">cimg_library::cimg</a>;</code> in your source code, since a lot of functions of the <code><a class="el" href="namespacecimg__library_1_1cimg.html" title="Namespace that encompasses low-level functions and variables of the CImg Library...">cimg</a>::</code> namespace have prototypes similar to standard C functions that could defined in the global namespace <code>::</code>. </dd></dl>
philpem@5 426
philpem@5 427 <p>
philpem@5 428 <hr><h2>Function Documentation</h2>
philpem@5 429 <a class="anchor" name="c1b66fe77173de9e5e8542b2823d6071"></a><!-- doxytag: member="cimg_library::cimg::info" ref="c1b66fe77173de9e5e8542b2823d6071" args="()" -->
philpem@5 430 <div class="memitem">
philpem@5 431 <div class="memproto">
philpem@5 432 <table class="memname">
philpem@5 433 <tr>
philpem@5 434 <td class="memname">void info </td>
philpem@5 435 <td>(</td>
philpem@5 436 <td class="paramname"> </td>
philpem@5 437 <td>&nbsp;)&nbsp;</td>
philpem@5 438 <td><code> [inline]</code></td>
philpem@5 439 </tr>
philpem@5 440 </table>
philpem@5 441 </div>
philpem@5 442 <div class="memdoc">
philpem@5 443
philpem@5 444 <p>
philpem@5 445 Print informations about CImg environement variables.
philpem@5 446 <p>
philpem@5 447 Printing is done on the standard error output.
philpem@5 448 </div>
philpem@5 449 </div><p>
philpem@5 450 <a class="anchor" name="acf66918a1173b3f72fe6f088d94f26b"></a><!-- doxytag: member="cimg_library::cimg::exception_mode" ref="acf66918a1173b3f72fe6f088d94f26b" args="()" -->
philpem@5 451 <div class="memitem">
philpem@5 452 <div class="memproto">
philpem@5 453 <table class="memname">
philpem@5 454 <tr>
philpem@5 455 <td class="memname">unsigned int&amp; cimg_library::cimg::exception_mode </td>
philpem@5 456 <td>(</td>
philpem@5 457 <td class="paramname"> </td>
philpem@5 458 <td>&nbsp;)&nbsp;</td>
philpem@5 459 <td><code> [inline]</code></td>
philpem@5 460 </tr>
philpem@5 461 </table>
philpem@5 462 </div>
philpem@5 463 <div class="memdoc">
philpem@5 464
philpem@5 465 <p>
philpem@5 466 Get/set the current <a class="el" href="structcimg__library_1_1CImg.html" title="Class representing an image (up to 4 dimensions wide), each pixel being of type T...">CImg</a> exception mode.
philpem@5 467 <p>
philpem@5 468 The way error messages are handled by <a class="el" href="structcimg__library_1_1CImg.html" title="Class representing an image (up to 4 dimensions wide), each pixel being of type T...">CImg</a> can be changed dynamically, using this function. Possible values are :<ul>
philpem@5 469 <li>0 to hide debug messages (quiet mode, but exceptions are still thrown).</li><li>1 to display debug messages on standard error (console).</li><li>2 to display debug messages in modal windows (default behavior).</li><li>3 to do as 1 + add extra warnings (may slow down the code !).</li><li>4 to do as 2 + add extra warnings (may slow down the code !). </li></ul>
philpem@5 470
philpem@5 471 </div>
philpem@5 472 </div><p>
philpem@5 473 <a class="anchor" name="93ec28267b101050d949d1ebff1b88cf"></a><!-- doxytag: member="cimg_library::cimg::warn" ref="93ec28267b101050d949d1ebff1b88cf" args="(const char *format,...)" -->
philpem@5 474 <div class="memitem">
philpem@5 475 <div class="memproto">
philpem@5 476 <table class="memname">
philpem@5 477 <tr>
philpem@5 478 <td class="memname">void cimg_library::cimg::warn </td>
philpem@5 479 <td>(</td>
philpem@5 480 <td class="paramtype">const char *&nbsp;</td>
philpem@5 481 <td class="paramname"> <em>format</em>, </td>
philpem@5 482 </tr>
philpem@5 483 <tr>
philpem@5 484 <td class="paramkey"></td>
philpem@5 485 <td></td>
philpem@5 486 <td class="paramtype">&nbsp;</td>
philpem@5 487 <td class="paramname"> <em>...</em></td><td>&nbsp;</td>
philpem@5 488 </tr>
philpem@5 489 <tr>
philpem@5 490 <td></td>
philpem@5 491 <td>)</td>
philpem@5 492 <td></td><td></td><td><code> [inline]</code></td>
philpem@5 493 </tr>
philpem@5 494 </table>
philpem@5 495 </div>
philpem@5 496 <div class="memdoc">
philpem@5 497
philpem@5 498 <p>
philpem@5 499 Display a warning message.
philpem@5 500 <p>
philpem@5 501 <dl compact><dt><b>Parameters:</b></dt><dd>
philpem@5 502 <table border="0" cellspacing="2" cellpadding="0">
philpem@5 503 <tr><td valign="top"></td><td valign="top"><em>format</em>&nbsp;</td><td>is a C-string describing the format of the message, as in <code>std::printf()</code>. </td></tr>
philpem@5 504 </table>
philpem@5 505 </dl>
philpem@5 506
philpem@5 507 </div>
philpem@5 508 </div><p>
philpem@5 509 <a class="anchor" name="09e80f4d7a95f3d5c2282202d8526520"></a><!-- doxytag: member="cimg_library::cimg::system" ref="09e80f4d7a95f3d5c2282202d8526520" args="(const char *const command, const char *const module_name=0)" -->
philpem@5 510 <div class="memitem">
philpem@5 511 <div class="memproto">
philpem@5 512 <table class="memname">
philpem@5 513 <tr>
philpem@5 514 <td class="memname">int cimg_library::cimg::system </td>
philpem@5 515 <td>(</td>
philpem@5 516 <td class="paramtype">const char *const &nbsp;</td>
philpem@5 517 <td class="paramname"> <em>command</em>, </td>
philpem@5 518 </tr>
philpem@5 519 <tr>
philpem@5 520 <td class="paramkey"></td>
philpem@5 521 <td></td>
philpem@5 522 <td class="paramtype">const char *const &nbsp;</td>
philpem@5 523 <td class="paramname"> <em>module_name</em> = <code>0</code></td><td>&nbsp;</td>
philpem@5 524 </tr>
philpem@5 525 <tr>
philpem@5 526 <td></td>
philpem@5 527 <td>)</td>
philpem@5 528 <td></td><td></td><td><code> [inline]</code></td>
philpem@5 529 </tr>
philpem@5 530 </table>
philpem@5 531 </div>
philpem@5 532 <div class="memdoc">
philpem@5 533
philpem@5 534 <p>
philpem@5 535 <dl class="note" compact><dt><b>Note:</b></dt><dd>This function is similar to <code>std::system()</code> and is here because using the <code>std::</code> version on Windows may open undesired consoles. </dd></dl>
philpem@5 536
philpem@5 537 </div>
philpem@5 538 </div><p>
philpem@5 539 <a class="anchor" name="0d2a283a3aa2572e9d343f040c8c4c6b"></a><!-- doxytag: member="cimg_library::cimg::endianness" ref="0d2a283a3aa2572e9d343f040c8c4c6b" args="()" -->
philpem@5 540 <div class="memitem">
philpem@5 541 <div class="memproto">
philpem@5 542 <table class="memname">
philpem@5 543 <tr>
philpem@5 544 <td class="memname">bool cimg_library::cimg::endianness </td>
philpem@5 545 <td>(</td>
philpem@5 546 <td class="paramname"> </td>
philpem@5 547 <td>&nbsp;)&nbsp;</td>
philpem@5 548 <td><code> [inline]</code></td>
philpem@5 549 </tr>
philpem@5 550 </table>
philpem@5 551 </div>
philpem@5 552 <div class="memdoc">
philpem@5 553
philpem@5 554 <p>
philpem@5 555 Return the current endianness of the CPU.
philpem@5 556 <p>
philpem@5 557 <dl class="return" compact><dt><b>Returns:</b></dt><dd><code>false</code> for "Little Endian", <code>true</code> for "Big Endian". </dd></dl>
philpem@5 558
philpem@5 559 </div>
philpem@5 560 </div><p>
philpem@5 561 <a class="anchor" name="3ac7655e49556a90715f3532af221334"></a><!-- doxytag: member="cimg_library::cimg::sleep" ref="3ac7655e49556a90715f3532af221334" args="(const unsigned int milliseconds)" -->
philpem@5 562 <div class="memitem">
philpem@5 563 <div class="memproto">
philpem@5 564 <table class="memname">
philpem@5 565 <tr>
philpem@5 566 <td class="memname">void cimg_library::cimg::sleep </td>
philpem@5 567 <td>(</td>
philpem@5 568 <td class="paramtype">const unsigned int&nbsp;</td>
philpem@5 569 <td class="paramname"> <em>milliseconds</em> </td>
philpem@5 570 <td>&nbsp;)&nbsp;</td>
philpem@5 571 <td><code> [inline]</code></td>
philpem@5 572 </tr>
philpem@5 573 </table>
philpem@5 574 </div>
philpem@5 575 <div class="memdoc">
philpem@5 576
philpem@5 577 <p>
philpem@5 578 Sleep for a certain numbers of milliseconds.
philpem@5 579 <p>
philpem@5 580 This function frees the CPU ressources during the sleeping time. It may be used to temporize your program properly, without wasting CPU time.
philpem@5 581 </div>
philpem@5 582 </div><p>
philpem@5 583 <a class="anchor" name="3c8917c0f12139bff6de6e3e45fc5b77"></a><!-- doxytag: member="cimg_library::cimg::wait" ref="3c8917c0f12139bff6de6e3e45fc5b77" args="(const unsigned int milliseconds)" -->
philpem@5 584 <div class="memitem">
philpem@5 585 <div class="memproto">
philpem@5 586 <table class="memname">
philpem@5 587 <tr>
philpem@5 588 <td class="memname">unsigned int cimg_library::cimg::wait </td>
philpem@5 589 <td>(</td>
philpem@5 590 <td class="paramtype">const unsigned int&nbsp;</td>
philpem@5 591 <td class="paramname"> <em>milliseconds</em> </td>
philpem@5 592 <td>&nbsp;)&nbsp;</td>
philpem@5 593 <td><code> [inline]</code></td>
philpem@5 594 </tr>
philpem@5 595 </table>
philpem@5 596 </div>
philpem@5 597 <div class="memdoc">
philpem@5 598
philpem@5 599 <p>
philpem@5 600 Wait for a certain number of milliseconds since the last call.
philpem@5 601 <p>
philpem@5 602 This function is equivalent to <a class="el" href="namespacecimg__library_1_1cimg.html#3ac7655e49556a90715f3532af221334" title="Sleep for a certain numbers of milliseconds.">sleep()</a> but the waiting time is computed with regard to the last call of <a class="el" href="namespacecimg__library_1_1cimg.html#3c8917c0f12139bff6de6e3e45fc5b77" title="Wait for a certain number of milliseconds since the last call.">wait()</a>. It may be used to temporize your program properly.
philpem@5 603 </div>
philpem@5 604 </div><p>
philpem@5 605 <a class="anchor" name="5dd0a4d361e2db646f5042be6bfe1d31"></a><!-- doxytag: member="cimg_library::cimg::abs" ref="5dd0a4d361e2db646f5042be6bfe1d31" args="(const T a)" -->
philpem@5 606 <div class="memitem">
philpem@5 607 <div class="memproto">
philpem@5 608 <table class="memname">
philpem@5 609 <tr>
philpem@5 610 <td class="memname">T cimg_library::cimg::abs </td>
philpem@5 611 <td>(</td>
philpem@5 612 <td class="paramtype">const T&nbsp;</td>
philpem@5 613 <td class="paramname"> <em>a</em> </td>
philpem@5 614 <td>&nbsp;)&nbsp;</td>
philpem@5 615 <td><code> [inline]</code></td>
philpem@5 616 </tr>
philpem@5 617 </table>
philpem@5 618 </div>
philpem@5 619 <div class="memdoc">
philpem@5 620
philpem@5 621 <p>
philpem@5 622 Return the absolute value of a number.
philpem@5 623 <p>
philpem@5 624 <dl class="note" compact><dt><b>Note:</b></dt><dd>This function is different from <code>std::abs()</code> or <code>std::fabs()</code> because it is able to consider a variable of any type, without cast needed. </dd></dl>
philpem@5 625
philpem@5 626 </div>
philpem@5 627 </div><p>
philpem@5 628 <a class="anchor" name="85970edf9afb3b48c0715fadf917854e"></a><!-- doxytag: member="cimg_library::cimg::mod" ref="85970edf9afb3b48c0715fadf917854e" args="(const T &amp;x, const T &amp;m)" -->
philpem@5 629 <div class="memitem">
philpem@5 630 <div class="memproto">
philpem@5 631 <table class="memname">
philpem@5 632 <tr>
philpem@5 633 <td class="memname">T cimg_library::cimg::mod </td>
philpem@5 634 <td>(</td>
philpem@5 635 <td class="paramtype">const T &amp;&nbsp;</td>
philpem@5 636 <td class="paramname"> <em>x</em>, </td>
philpem@5 637 </tr>
philpem@5 638 <tr>
philpem@5 639 <td class="paramkey"></td>
philpem@5 640 <td></td>
philpem@5 641 <td class="paramtype">const T &amp;&nbsp;</td>
philpem@5 642 <td class="paramname"> <em>m</em></td><td>&nbsp;</td>
philpem@5 643 </tr>
philpem@5 644 <tr>
philpem@5 645 <td></td>
philpem@5 646 <td>)</td>
philpem@5 647 <td></td><td></td><td><code> [inline]</code></td>
philpem@5 648 </tr>
philpem@5 649 </table>
philpem@5 650 </div>
philpem@5 651 <div class="memdoc">
philpem@5 652
philpem@5 653 <p>
philpem@5 654 Return the modulo of a number.
philpem@5 655 <p>
philpem@5 656 <dl class="note" compact><dt><b>Note:</b></dt><dd>This modulo function accepts negative and floating-points modulo numbers, as well as variable of any type. </dd></dl>
philpem@5 657
philpem@5 658 </div>
philpem@5 659 </div><p>
philpem@5 660 <a class="anchor" name="e2bab18e9272641210d8b2d7e4a4503f"></a><!-- doxytag: member="cimg_library::cimg::minmod" ref="e2bab18e9272641210d8b2d7e4a4503f" args="(const T a, const T b)" -->
philpem@5 661 <div class="memitem">
philpem@5 662 <div class="memproto">
philpem@5 663 <table class="memname">
philpem@5 664 <tr>
philpem@5 665 <td class="memname">T cimg_library::cimg::minmod </td>
philpem@5 666 <td>(</td>
philpem@5 667 <td class="paramtype">const T&nbsp;</td>
philpem@5 668 <td class="paramname"> <em>a</em>, </td>
philpem@5 669 </tr>
philpem@5 670 <tr>
philpem@5 671 <td class="paramkey"></td>
philpem@5 672 <td></td>
philpem@5 673 <td class="paramtype">const T&nbsp;</td>
philpem@5 674 <td class="paramname"> <em>b</em></td><td>&nbsp;</td>
philpem@5 675 </tr>
philpem@5 676 <tr>
philpem@5 677 <td></td>
philpem@5 678 <td>)</td>
philpem@5 679 <td></td><td></td><td><code> [inline]</code></td>
philpem@5 680 </tr>
philpem@5 681 </table>
philpem@5 682 </div>
philpem@5 683 <div class="memdoc">
philpem@5 684
philpem@5 685 <p>
philpem@5 686 Return the minmod of two numbers.
philpem@5 687 <p>
philpem@5 688 <em>minmod(<code>a</code>,<code>b</code>)</em> is defined to be :<ul>
philpem@5 689 <li><em>minmod(<code>a</code>,<code>b</code>) = min(<code>a</code>,<code>b</code>)</em>, if <code>a</code> and <code>b</code> have the same sign.</li><li><em>minmod(<code>a</code>,<code>b</code>) = 0</em>, if <code>a</code> and <code>b</code> have different signs. </li></ul>
philpem@5 690
philpem@5 691 </div>
philpem@5 692 </div><p>
philpem@5 693 <a class="anchor" name="0bfd704cc09f4a25f09035b067aca4e3"></a><!-- doxytag: member="cimg_library::cimg::round" ref="0bfd704cc09f4a25f09035b067aca4e3" args="(const double x, const double y, const int rounding_type=0)" -->
philpem@5 694 <div class="memitem">
philpem@5 695 <div class="memproto">
philpem@5 696 <table class="memname">
philpem@5 697 <tr>
philpem@5 698 <td class="memname">double cimg_library::cimg::round </td>
philpem@5 699 <td>(</td>
philpem@5 700 <td class="paramtype">const double&nbsp;</td>
philpem@5 701 <td class="paramname"> <em>x</em>, </td>
philpem@5 702 </tr>
philpem@5 703 <tr>
philpem@5 704 <td class="paramkey"></td>
philpem@5 705 <td></td>
philpem@5 706 <td class="paramtype">const double&nbsp;</td>
philpem@5 707 <td class="paramname"> <em>y</em>, </td>
philpem@5 708 </tr>
philpem@5 709 <tr>
philpem@5 710 <td class="paramkey"></td>
philpem@5 711 <td></td>
philpem@5 712 <td class="paramtype">const int&nbsp;</td>
philpem@5 713 <td class="paramname"> <em>rounding_type</em> = <code>0</code></td><td>&nbsp;</td>
philpem@5 714 </tr>
philpem@5 715 <tr>
philpem@5 716 <td></td>
philpem@5 717 <td>)</td>
philpem@5 718 <td></td><td></td><td><code> [inline]</code></td>
philpem@5 719 </tr>
philpem@5 720 </table>
philpem@5 721 </div>
philpem@5 722 <div class="memdoc">
philpem@5 723
philpem@5 724 <p>
philpem@5 725 Return a rounded number.
philpem@5 726 <p>
philpem@5 727 <dl compact><dt><b>Parameters:</b></dt><dd>
philpem@5 728 <table border="0" cellspacing="2" cellpadding="0">
philpem@5 729 <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>is the number to be rounded. </td></tr>
philpem@5 730 <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>is the rounding precision. </td></tr>
philpem@5 731 <tr><td valign="top"></td><td valign="top"><em>rounding_type</em>&nbsp;</td><td>defines the type of rounding (0=nearest, -1=backward, 1=forward). </td></tr>
philpem@5 732 </table>
philpem@5 733 </dl>
philpem@5 734
philpem@5 735 </div>
philpem@5 736 </div><p>
philpem@5 737 <a class="anchor" name="eec70054768b152c0dbea51f5a56536b"></a><!-- doxytag: member="cimg_library::cimg::uncase" ref="eec70054768b152c0dbea51f5a56536b" args="(char *const string)" -->
philpem@5 738 <div class="memitem">
philpem@5 739 <div class="memproto">
philpem@5 740 <table class="memname">
philpem@5 741 <tr>
philpem@5 742 <td class="memname">void cimg_library::cimg::uncase </td>
philpem@5 743 <td>(</td>
philpem@5 744 <td class="paramtype">char *const &nbsp;</td>
philpem@5 745 <td class="paramname"> <em>string</em> </td>
philpem@5 746 <td>&nbsp;)&nbsp;</td>
philpem@5 747 <td><code> [inline]</code></td>
philpem@5 748 </tr>
philpem@5 749 </table>
philpem@5 750 </div>
philpem@5 751 <div class="memdoc">
philpem@5 752
philpem@5 753 <p>
philpem@5 754 Remove the 'case' of a C string.
philpem@5 755 <p>
philpem@5 756 Acts in-place.
philpem@5 757 </div>
philpem@5 758 </div><p>
philpem@5 759 <a class="anchor" name="9ab0fcc7ef1bac330897fec51f617ae6"></a><!-- doxytag: member="cimg_library::cimg::atof" ref="9ab0fcc7ef1bac330897fec51f617ae6" args="(const char *const str)" -->
philpem@5 760 <div class="memitem">
philpem@5 761 <div class="memproto">
philpem@5 762 <table class="memname">
philpem@5 763 <tr>
philpem@5 764 <td class="memname">float cimg_library::cimg::atof </td>
philpem@5 765 <td>(</td>
philpem@5 766 <td class="paramtype">const char *const &nbsp;</td>
philpem@5 767 <td class="paramname"> <em>str</em> </td>
philpem@5 768 <td>&nbsp;)&nbsp;</td>
philpem@5 769 <td><code> [inline]</code></td>
philpem@5 770 </tr>
philpem@5 771 </table>
philpem@5 772 </div>
philpem@5 773 <div class="memdoc">
philpem@5 774
philpem@5 775 <p>
philpem@5 776 Read a float number from a C-string.
philpem@5 777 <p>
philpem@5 778 <dl class="note" compact><dt><b>Note:</b></dt><dd>This function is quite similar to <code>std::atof()</code>, but that it allows the retrieval of fractions as in "1/2". </dd></dl>
philpem@5 779
philpem@5 780 </div>
philpem@5 781 </div><p>
philpem@5 782 <a class="anchor" name="3f65ad0f35bbbfc7ec197ce32f326da2"></a><!-- doxytag: member="cimg_library::cimg::strlen" ref="3f65ad0f35bbbfc7ec197ce32f326da2" args="(const char *const s)" -->
philpem@5 783 <div class="memitem">
philpem@5 784 <div class="memproto">
philpem@5 785 <table class="memname">
philpem@5 786 <tr>
philpem@5 787 <td class="memname">int cimg_library::cimg::strlen </td>
philpem@5 788 <td>(</td>
philpem@5 789 <td class="paramtype">const char *const &nbsp;</td>
philpem@5 790 <td class="paramname"> <em>s</em> </td>
philpem@5 791 <td>&nbsp;)&nbsp;</td>
philpem@5 792 <td><code> [inline]</code></td>
philpem@5 793 </tr>
philpem@5 794 </table>
philpem@5 795 </div>
philpem@5 796 <div class="memdoc">
philpem@5 797
philpem@5 798 <p>
philpem@5 799 Compute the length of a C-string.
philpem@5 800 <p>
philpem@5 801 <dl class="note" compact><dt><b>Note:</b></dt><dd>This function is similar to <code>std::strlen()</code> and is here because some old compilers do not define the <code>std::</code> version. </dd></dl>
philpem@5 802
philpem@5 803 </div>
philpem@5 804 </div><p>
philpem@5 805 <a class="anchor" name="efc1425e963cd56d8a926908749119a5"></a><!-- doxytag: member="cimg_library::cimg::strncmp" ref="efc1425e963cd56d8a926908749119a5" args="(const char *const s1, const char *const s2, const int l)" -->
philpem@5 806 <div class="memitem">
philpem@5 807 <div class="memproto">
philpem@5 808 <table class="memname">
philpem@5 809 <tr>
philpem@5 810 <td class="memname">int cimg_library::cimg::strncmp </td>
philpem@5 811 <td>(</td>
philpem@5 812 <td class="paramtype">const char *const &nbsp;</td>
philpem@5 813 <td class="paramname"> <em>s1</em>, </td>
philpem@5 814 </tr>
philpem@5 815 <tr>
philpem@5 816 <td class="paramkey"></td>
philpem@5 817 <td></td>
philpem@5 818 <td class="paramtype">const char *const &nbsp;</td>
philpem@5 819 <td class="paramname"> <em>s2</em>, </td>
philpem@5 820 </tr>
philpem@5 821 <tr>
philpem@5 822 <td class="paramkey"></td>
philpem@5 823 <td></td>
philpem@5 824 <td class="paramtype">const int&nbsp;</td>
philpem@5 825 <td class="paramname"> <em>l</em></td><td>&nbsp;</td>
philpem@5 826 </tr>
philpem@5 827 <tr>
philpem@5 828 <td></td>
philpem@5 829 <td>)</td>
philpem@5 830 <td></td><td></td><td><code> [inline]</code></td>
philpem@5 831 </tr>
philpem@5 832 </table>
philpem@5 833 </div>
philpem@5 834 <div class="memdoc">
philpem@5 835
philpem@5 836 <p>
philpem@5 837 Compare the first <code>n</code> characters of two C-strings.
philpem@5 838 <p>
philpem@5 839 <dl class="note" compact><dt><b>Note:</b></dt><dd>This function is similar to <code>std::strncmp()</code> and is here because some old compilers do not define the <code>std::</code> version. </dd></dl>
philpem@5 840
philpem@5 841 </div>
philpem@5 842 </div><p>
philpem@5 843 <a class="anchor" name="747de40c911c42d60e1a4ee3f0c69c6c"></a><!-- doxytag: member="cimg_library::cimg::strncasecmp" ref="747de40c911c42d60e1a4ee3f0c69c6c" args="(const char *const s1, const char *const s2, const int l)" -->
philpem@5 844 <div class="memitem">
philpem@5 845 <div class="memproto">
philpem@5 846 <table class="memname">
philpem@5 847 <tr>
philpem@5 848 <td class="memname">int cimg_library::cimg::strncasecmp </td>
philpem@5 849 <td>(</td>
philpem@5 850 <td class="paramtype">const char *const &nbsp;</td>
philpem@5 851 <td class="paramname"> <em>s1</em>, </td>
philpem@5 852 </tr>
philpem@5 853 <tr>
philpem@5 854 <td class="paramkey"></td>
philpem@5 855 <td></td>
philpem@5 856 <td class="paramtype">const char *const &nbsp;</td>
philpem@5 857 <td class="paramname"> <em>s2</em>, </td>
philpem@5 858 </tr>
philpem@5 859 <tr>
philpem@5 860 <td class="paramkey"></td>
philpem@5 861 <td></td>
philpem@5 862 <td class="paramtype">const int&nbsp;</td>
philpem@5 863 <td class="paramname"> <em>l</em></td><td>&nbsp;</td>
philpem@5 864 </tr>
philpem@5 865 <tr>
philpem@5 866 <td></td>
philpem@5 867 <td>)</td>
philpem@5 868 <td></td><td></td><td><code> [inline]</code></td>
philpem@5 869 </tr>
philpem@5 870 </table>
philpem@5 871 </div>
philpem@5 872 <div class="memdoc">
philpem@5 873
philpem@5 874 <p>
philpem@5 875 Compare the first <code>n</code> characters of two C-strings, ignoring the case.
philpem@5 876 <p>
philpem@5 877 <dl class="note" compact><dt><b>Note:</b></dt><dd>This function is similar to <code>std::strncasecmp()</code> and is here because some old compilers do not define the <code>std::</code> version. </dd></dl>
philpem@5 878
philpem@5 879 </div>
philpem@5 880 </div><p>
philpem@5 881 <a class="anchor" name="aab723edb9b070b285367e7ffc099d78"></a><!-- doxytag: member="cimg_library::cimg::strcmp" ref="aab723edb9b070b285367e7ffc099d78" args="(const char *const s1, const char *const s2)" -->
philpem@5 882 <div class="memitem">
philpem@5 883 <div class="memproto">
philpem@5 884 <table class="memname">
philpem@5 885 <tr>
philpem@5 886 <td class="memname">int cimg_library::cimg::strcmp </td>
philpem@5 887 <td>(</td>
philpem@5 888 <td class="paramtype">const char *const &nbsp;</td>
philpem@5 889 <td class="paramname"> <em>s1</em>, </td>
philpem@5 890 </tr>
philpem@5 891 <tr>
philpem@5 892 <td class="paramkey"></td>
philpem@5 893 <td></td>
philpem@5 894 <td class="paramtype">const char *const &nbsp;</td>
philpem@5 895 <td class="paramname"> <em>s2</em></td><td>&nbsp;</td>
philpem@5 896 </tr>
philpem@5 897 <tr>
philpem@5 898 <td></td>
philpem@5 899 <td>)</td>
philpem@5 900 <td></td><td></td><td><code> [inline]</code></td>
philpem@5 901 </tr>
philpem@5 902 </table>
philpem@5 903 </div>
philpem@5 904 <div class="memdoc">
philpem@5 905
philpem@5 906 <p>
philpem@5 907 Compare two C-strings.
philpem@5 908 <p>
philpem@5 909 <dl class="note" compact><dt><b>Note:</b></dt><dd>This function is similar to <code>std::strcmp()</code> and is here because some old compilers do not define the <code>std::</code> version. </dd></dl>
philpem@5 910
philpem@5 911 </div>
philpem@5 912 </div><p>
philpem@5 913 <a class="anchor" name="43334b3df38ff7c4369a503a4fc3a9f9"></a><!-- doxytag: member="cimg_library::cimg::strcasecmp" ref="43334b3df38ff7c4369a503a4fc3a9f9" args="(const char *const s1, const char *const s2)" -->
philpem@5 914 <div class="memitem">
philpem@5 915 <div class="memproto">
philpem@5 916 <table class="memname">
philpem@5 917 <tr>
philpem@5 918 <td class="memname">int cimg_library::cimg::strcasecmp </td>
philpem@5 919 <td>(</td>
philpem@5 920 <td class="paramtype">const char *const &nbsp;</td>
philpem@5 921 <td class="paramname"> <em>s1</em>, </td>
philpem@5 922 </tr>
philpem@5 923 <tr>
philpem@5 924 <td class="paramkey"></td>
philpem@5 925 <td></td>
philpem@5 926 <td class="paramtype">const char *const &nbsp;</td>
philpem@5 927 <td class="paramname"> <em>s2</em></td><td>&nbsp;</td>
philpem@5 928 </tr>
philpem@5 929 <tr>
philpem@5 930 <td></td>
philpem@5 931 <td>)</td>
philpem@5 932 <td></td><td></td><td><code> [inline]</code></td>
philpem@5 933 </tr>
philpem@5 934 </table>
philpem@5 935 </div>
philpem@5 936 <div class="memdoc">
philpem@5 937
philpem@5 938 <p>
philpem@5 939 Compare two C-strings, ignoring the case.
philpem@5 940 <p>
philpem@5 941 <dl class="note" compact><dt><b>Note:</b></dt><dd>This function is similar to <code>std::strcasecmp()</code> and is here because some old compilers do not define the <code>std::</code> version. </dd></dl>
philpem@5 942
philpem@5 943 </div>
philpem@5 944 </div><p>
philpem@5 945 <a class="anchor" name="9bd2a1e3ffff4538c4f53856e8b28ded"></a><!-- doxytag: member="cimg_library::cimg::dialog" ref="9bd2a1e3ffff4538c4f53856e8b28ded" args="(const char *title, const char *msg, const char *button1_txt, const char *button2_txt, const char *button3_txt, const char *button4_txt, const char *button5_txt, const char *button6_txt, const CImg&lt; t &gt; &amp;logo, const bool centering=false)" -->
philpem@5 946 <div class="memitem">
philpem@5 947 <div class="memproto">
philpem@5 948 <table class="memname">
philpem@5 949 <tr>
philpem@5 950 <td class="memname">int cimg_library::cimg::dialog </td>
philpem@5 951 <td>(</td>
philpem@5 952 <td class="paramtype">const char *&nbsp;</td>
philpem@5 953 <td class="paramname"> <em>title</em>, </td>
philpem@5 954 </tr>
philpem@5 955 <tr>
philpem@5 956 <td class="paramkey"></td>
philpem@5 957 <td></td>
philpem@5 958 <td class="paramtype">const char *&nbsp;</td>
philpem@5 959 <td class="paramname"> <em>msg</em>, </td>
philpem@5 960 </tr>
philpem@5 961 <tr>
philpem@5 962 <td class="paramkey"></td>
philpem@5 963 <td></td>
philpem@5 964 <td class="paramtype">const char *&nbsp;</td>
philpem@5 965 <td class="paramname"> <em>button1_txt</em>, </td>
philpem@5 966 </tr>
philpem@5 967 <tr>
philpem@5 968 <td class="paramkey"></td>
philpem@5 969 <td></td>
philpem@5 970 <td class="paramtype">const char *&nbsp;</td>
philpem@5 971 <td class="paramname"> <em>button2_txt</em>, </td>
philpem@5 972 </tr>
philpem@5 973 <tr>
philpem@5 974 <td class="paramkey"></td>
philpem@5 975 <td></td>
philpem@5 976 <td class="paramtype">const char *&nbsp;</td>
philpem@5 977 <td class="paramname"> <em>button3_txt</em>, </td>
philpem@5 978 </tr>
philpem@5 979 <tr>
philpem@5 980 <td class="paramkey"></td>
philpem@5 981 <td></td>
philpem@5 982 <td class="paramtype">const char *&nbsp;</td>
philpem@5 983 <td class="paramname"> <em>button4_txt</em>, </td>
philpem@5 984 </tr>
philpem@5 985 <tr>
philpem@5 986 <td class="paramkey"></td>
philpem@5 987 <td></td>
philpem@5 988 <td class="paramtype">const char *&nbsp;</td>
philpem@5 989 <td class="paramname"> <em>button5_txt</em>, </td>
philpem@5 990 </tr>
philpem@5 991 <tr>
philpem@5 992 <td class="paramkey"></td>
philpem@5 993 <td></td>
philpem@5 994 <td class="paramtype">const char *&nbsp;</td>
philpem@5 995 <td class="paramname"> <em>button6_txt</em>, </td>
philpem@5 996 </tr>
philpem@5 997 <tr>
philpem@5 998 <td class="paramkey"></td>
philpem@5 999 <td></td>
philpem@5 1000 <td class="paramtype">const CImg&lt; t &gt; &amp;&nbsp;</td>
philpem@5 1001 <td class="paramname"> <em>logo</em>, </td>
philpem@5 1002 </tr>
philpem@5 1003 <tr>
philpem@5 1004 <td class="paramkey"></td>
philpem@5 1005 <td></td>
philpem@5 1006 <td class="paramtype">const bool&nbsp;</td>
philpem@5 1007 <td class="paramname"> <em>centering</em> = <code>false</code></td><td>&nbsp;</td>
philpem@5 1008 </tr>
philpem@5 1009 <tr>
philpem@5 1010 <td></td>
philpem@5 1011 <td>)</td>
philpem@5 1012 <td></td><td></td><td><code> [inline]</code></td>
philpem@5 1013 </tr>
philpem@5 1014 </table>
philpem@5 1015 </div>
philpem@5 1016 <div class="memdoc">
philpem@5 1017
philpem@5 1018 <p>
philpem@5 1019 Display a dialog box, where a user can click standard buttons.
philpem@5 1020 <p>
philpem@5 1021 Up to 6 buttons can be defined in the dialog window. This function returns when a user clicked one of the button or closed the dialog window. <dl compact><dt><b>Parameters:</b></dt><dd>
philpem@5 1022 <table border="0" cellspacing="2" cellpadding="0">
philpem@5 1023 <tr><td valign="top"></td><td valign="top"><em>title</em>&nbsp;</td><td>= Title of the dialog window. </td></tr>
philpem@5 1024 <tr><td valign="top"></td><td valign="top"><em>msg</em>&nbsp;</td><td>= Main message displayed inside the dialog window. </td></tr>
philpem@5 1025 <tr><td valign="top"></td><td valign="top"><em>button1_txt</em>&nbsp;</td><td>= Label of the 1st button. </td></tr>
philpem@5 1026 <tr><td valign="top"></td><td valign="top"><em>button2_txt</em>&nbsp;</td><td>= Label of the 2nd button. </td></tr>
philpem@5 1027 <tr><td valign="top"></td><td valign="top"><em>button3_txt</em>&nbsp;</td><td>= Label of the 3rd button. </td></tr>
philpem@5 1028 <tr><td valign="top"></td><td valign="top"><em>button4_txt</em>&nbsp;</td><td>= Label of the 4th button. </td></tr>
philpem@5 1029 <tr><td valign="top"></td><td valign="top"><em>button5_txt</em>&nbsp;</td><td>= Label of the 5th button. </td></tr>
philpem@5 1030 <tr><td valign="top"></td><td valign="top"><em>button6_txt</em>&nbsp;</td><td>= Label of the 6th button. </td></tr>
philpem@5 1031 <tr><td valign="top"></td><td valign="top"><em>logo</em>&nbsp;</td><td>= Logo image displayed at the left of the main message. This parameter is optional. </td></tr>
philpem@5 1032 <tr><td valign="top"></td><td valign="top"><em>centering</em>&nbsp;</td><td>= Tell to center the dialog window on the screen. </td></tr>
philpem@5 1033 </table>
philpem@5 1034 </dl>
philpem@5 1035 <dl class="return" compact><dt><b>Returns:</b></dt><dd>The button number (from 0 to 5), or -1 if the dialog window has been closed by the user. </dd></dl>
philpem@5 1036 <dl class="note" compact><dt><b>Note:</b></dt><dd>If a button text is set to 0, then the corresponding button (and the followings) won't appear in the dialog box. At least one button is necessary. </dd></dl>
philpem@5 1037
philpem@5 1038 </div>
philpem@5 1039 </div><p>
philpem@5 1040 </div>
philpem@5 1041 <hr noshade="noshade" size="1" width="100%">
philpem@5 1042 <a href="http://sourceforge.net">
philpem@5 1043 <img src="http://sourceforge.net/sflogo.php?group_id=96492&amp;type=3" border="0" height="37" width="125"></img>
philpem@5 1044 </a>
philpem@5 1045 <!-- Start of StatCounter Code -->
philpem@5 1046 <script type="text/javascript" language="javascript">
philpem@5 1047 <!--
philpem@5 1048 var sc_project=895001;
philpem@5 1049 var sc_invisible=1;
philpem@5 1050 var sc_partition=7;
philpem@5 1051 var sc_security="5ea85181";
philpem@5 1052 //-->
philpem@5 1053 </script>
philpem@5 1054 <script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img src="http://c8.statcounter.com/counter.php?sc_project=895001&amp;java=0&amp;security=5ea85181&amp;invisible=1" alt="counter stats" border="0"></a> </noscript>
philpem@5 1055 <!-- End of StatCounter Code -->
philpem@5 1056 </body>
philpem@5 1057 </html>