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>C Specification</h2>
16
17<dl>
18<dd><pre><code>#include &lt;revolution/vi.h&gt;</code></pre>
19  </dd>
20<dd><pre>void VISetGamma(VIGamma gamma);</pre>
21  </dd>
22</dl>
23
24<h2>Arguments</h2>
25
26<table border="1" cellpadding="3" cellspacing="0.1">
27  <tr>
28<td width="120" bgcolor="#ffffe8"><code><em><strong>gamma</strong></em></code></td>
29<td width="520">Gamma value. Applicable values range from 0.1 to 3.0.
30    <table width="500" border="1" cellspacing="0.1">
31      <tr>
32<td bgcolor="#C0C0C0" width="150"><strong>Name</strong></td>
33<td bgcolor="#C0C0C0" width="350"><strong>Gamma Correction Coefficient</strong></td>
34      </tr>
35      <tr>
36<td width="150"><code>VI_GM_0_1</code></td>
37        <td width="350">0.1</td>
38      </tr>
39      <tr>
40<td width="150"><code>VI_GM_0_2</code></td>
41        <td width="350">0.2</td>
42      </tr>
43      <tr>
44        <td width="150"><code>....</code></td>
45        <td width="350">...</td>
46      </tr>
47      <tr>
48<td width="150"><code>VI_GM_2_9</code></td>
49        <td width="350">2.9</td>
50      </tr>
51      <tr>
52<td width="150"><code>VI_GM_3_0</code></td>
53        <td width="350">3.0</td>
54      </tr>
55    </table>
56    </td>
57  </tr>
58</table>
59
60<h2>Return Values</h2>
61
62<p>None.</p>
63
64<h2>Description</h2>
65
66<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>
67
68<p>Changes do not take effect until <code><a href="VIFlush.html">VIFlush</a></code> is called. See the <code><a href="VIFlush.html">VIFlush</a></code> function reference for details on enabling effects.<br>
69
70Note that gamma correction is always set to 1.0 through <code><a href="VIInit.html">VIInit</a></code>.
71</p>
72
73<h2>See Also</h2>
74<p><code><a href="VIFlush.html">VIFlush</a></code>, <code><a href="VIInit.html">VIInit</a></code></p>
75
76<h2>Revision History</h2>
77
78<p>
792006/09/16 Added note that gamma value of 1.0 will be set by VIInit.<br>2006/05/09 Added the effective period of the gamma correction.<br>2006/03/01 Initial version.
80
81</p>
82<hr>
83<P>CONFIDENTIAL</p>
84</BODY>
85</HTML>
86