1<html>
2
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
6<meta http-equiv="Content-Style-Type" content="text/css">
7<link rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8<title>VISetGamma</title>
9</head>
10
11<body>
12
13<h1 align="left">VISetGamma</h1>
14
15<h2>Syntax</h2>
16<dl><dd><pre class="construction">
17#include &lt;revolution/vi.h&gt;
18
19void VISetGamma(VIGamma gamma);
20</pre></dd></dl>
21
22<h2>Arguments</h2>
23<TABLE class="arguments" border="1" >
24  <tr>
25<th>gamma</th>
26<td>Gamma value. Applicable values range from 0.1 to 3.0.
27    <TABLE class="arguments" border="1" >
28      <tr>
29<td bgcolor="#C0C0C0"><STRONG>Name</STRONG></td>
30<td bgcolor="#C0C0C0"><STRONG>Gamma Correction Coefficient</STRONG></td>
31      </tr>
32      <tr>
33        <th>VI_GM_0_1</th>
34        <td>0.1</td>
35      </tr>
36      <tr>
37        <th>VI_GM_0_2</th>
38        <td>0.2</td>
39      </tr>
40      <tr>
41        <th>....</th>
42        <td>...</td>
43      </tr>
44      <tr>
45        <th>VI_GM_2_9</th>
46        <td>2.9</td>
47      </tr>
48      <tr>
49        <th>VI_GM_3_0</th>
50        <td>3.0</td>
51      </tr>
52    </table>
53    </td>
54  </tr>
55</table>
56
57<h2>Return Values</h2>
58<p>None.</p>
59
60<h2>Description</h2>
61<p>This function applies the specified gamma correction for the gamma value only to the brightness signal output by the VI.<br>A specified gamma value remains valid until it is replaced by another gamma value.</p>
62
63<p>Changes do not take effect until <a href="VIFlush.html"><code>VIFlush</code></a> is called. See the <a href="VIFlush.html"><code>VIFlush</code></a> function reference for details on enabling effects.<br>
64
65Note that gamma correction is always set to 1.0 through <a href="VIInit.html"><code>VIInit</code></a>.
66</p>
67
68<h2>See Also</h2>
69<P class="reference">
70<a href="VIFlush.html">VIFlush</a>,
71<a href="VIInit.html">VIInit</a>
72</p>
73
74<h2>Revision History</h2>
75<p>
762006/09/16 Added a note that a gamma value of 1.0 will be set by <CODE>VIInit</CODE>.<br>2006/05/09 Added the effective period of the gamma correction.<br>2006/03/01 Initial version.<br>
77</p>
78
79<hr><p>CONFIDENTIAL</p></body>
80</html>
81