?? namespacecimg__library_1_1cimg.html
字號:
<div class="memdoc"><p>Wait for a certain number of milliseconds since the last call. <p>This function is equivalent to <a class="el" href="namespacecimg__library_1_1cimg.html#3ac7655e49556a90715f3532af221334">sleep()</a> but the waiting time is computed with regard to the last call of wait(). It may be used to temporize your program properly. <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="namespacecimg__library_1_1cimg.html#3ac7655e49556a90715f3532af221334">sleep()</a>, <a class="el" href="namespacecimg__library_1_1cimg.html#f883131bbc64e996d212114cc2b2b21a">time()</a>. </dd></dl></div></div><p><a class="anchor" name="1b6a62e8511af92513cc68dab1811769"></a><!-- doxytag: member="cimg_library::cimg::mod" ref="1b6a62e8511af92513cc68dab1811769" args="(const double x, const double m)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">double cimg_library::cimg::mod </td> <td>(</td> <td class="paramtype">const double </td> <td class="paramname"> <em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const double </td> <td class="paramname"> <em>m</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Return <code>x</code> modulo <code>m</code> (generic modulo). <p>This modulo function accepts negative and floating-points modulo numbers <code>m</code>. </div></div><p><a class="anchor" name="5ae603a367d3f1b9199fc3060336493f"></a><!-- doxytag: member="cimg_library::cimg::minmod" ref="5ae603a367d3f1b9199fc3060336493f" args="(const T &a, const T &b)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">T cimg_library::cimg::minmod </td> <td>(</td> <td class="paramtype">const T & </td> <td class="paramname"> <em>a</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const T & </td> <td class="paramname"> <em>b</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Return minmod(<code>a</code>,<code>b</code>). <p>The operator minmod(<code>a</code>,<code>b</code>) is defined to be :<ul><li>minmod(<code>a</code>,<code>b</code>) = min(<code>a</code>,<code>b</code>), if (<code>a</code> * <code>b</code>)>0.</li><li>minmod(<code>a</code>,<code>b</code>) = 0, if (<code>a</code> * <code>b</code>)<=0 </li></ul></div></div><p><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< t > &logo, const bool centering=false)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">int cimg_library::cimg::dialog </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>title</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>msg</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>button1_txt</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>button2_txt</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>button3_txt</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>button4_txt</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>button5_txt</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>button6_txt</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const CImg< t > & </td> <td class="paramname"> <em>logo</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const bool </td> <td class="paramname"> <em>centering</em> = <code>false</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Display a dialog box, where a user can click standard buttons. <p>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> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>title</em> </td><td>= Title of the dialog window. </td></tr> <tr><td valign="top"></td><td valign="top"><em>msg</em> </td><td>= Main message displayed inside the dialog window. </td></tr> <tr><td valign="top"></td><td valign="top"><em>button1_txt</em> </td><td>= Label of the 1st button. </td></tr> <tr><td valign="top"></td><td valign="top"><em>button2_txt</em> </td><td>= Label of the 2nd button. </td></tr> <tr><td valign="top"></td><td valign="top"><em>button3_txt</em> </td><td>= Label of the 3rd button. </td></tr> <tr><td valign="top"></td><td valign="top"><em>button4_txt</em> </td><td>= Label of the 4th button. </td></tr> <tr><td valign="top"></td><td valign="top"><em>button5_txt</em> </td><td>= Label of the 5th button. </td></tr> <tr><td valign="top"></td><td valign="top"><em>button6_txt</em> </td><td>= Label of the 6th button. </td></tr> <tr><td valign="top"></td><td valign="top"><em>logo</em> </td><td>= Logo image displayed at the left of the main message. This parameter is optional. </td></tr> <tr><td valign="top"></td><td valign="top"><em>centering</em> </td><td>= Tell to center the dialog window on the screen. </td></tr> </table></dl><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><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></div></div><p><!DOCTYPE html PUBLIC "-//w3c//dtd html 4.0 transitional//en"><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>The CImg Library - C++ Template Image Processing Library</title> <meta content="David Tschumperle" name="author"> <link rel="shortcut icon" type="image/x-icon" href="http://cimg.sourceforge.net/favicon.ico" /> <link rel="icon" type="image/png" href="favicon.png" /> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#ffffff" fgcolor="#000000" alink="#ff0000" link="#0000ee" vlink="#551a8b"> <hr noshade="noshade" size="1" width="100%"> <a href="http://sourceforge.net"> <img src="http://sourceforge.net/sflogo.php?group_id=96492&type=3" border="0" height="37" width="125"></a><!-- Start of StatCounter Code --><script type="text/javascript" language="javascript"><!-- var sc_project=895001; var sc_invisible=1; var sc_partition=7; var sc_security="5ea85181"; //--></script><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&java=0&security=5ea85181&invisible=1" alt="counter stats" border="0"></a> </noscript><!-- End of StatCounter Code --> </body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -