1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>G2S_SetBlendBrightness</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">G2S_SetBlendBrightness <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></H1> 15<H2>Syntax</H2> 16 17<dl> 18 <dd> 19<PRE> 20<CODE>#include <nitro/gx/g2.h></CODE><BR> 21<CODE>void G2S_SetBlendBrightness(<BR> int plane /* GXBlendPlaneMask */,<BR> int brightness<BR>);</CODE></PRE></dd> 22</dl><h2>Arguments</h2> 23 24<table border="1" width="100%"> 25 26 <tr> 27 <TD width="30"><em><strong><font face="Courier New">plane</font></strong></em></TD> 28 <TD width="672">Selects the plane where the brightness will be changed (result of a logical OR with the <code>GXBlendPlaneMask</code> type values)</TD> 29 </tr> 30 <TR> 31 <TD width="30"><em><strong><font face="Courier New">brightness</font></strong></em></TD> 32 <TD width="672">Specifies the coefficient for brightness change (-16 ≤ <em><strong><CODE>brightness</CODE></strong></em> ≤ 16)</TD> 33 </TR> 34 </table> 35<h2>Return Values</h2> 36<p>None.</p> 37<H2>Description</H2> 38<P>This function uses the sub 2D Engine to change the brightness of the plane that was specified by <em><strong><CODE>plane</CODE></strong></em>. If <em><strong><code>brightness</code></strong></em> is positive, the brightness increases; if it is negative, the brightness decreases. Refer to the <CODE><A href="G2S_SetBlendAlpha.html">G2S_SetBlendAlpha</A></CODE> function for details on the <code>GXBlendPlaneMask</code> type.</P> 39<h2>See Also</h2> 40<P><CODE><A href="G2S_BlendNone.html">G2S_BlendNone</A>, <A href="G2S_SetBlendAlpha.html">G2S_SetBlendAlpha</A>, <A href="G2S_SetBlendBrightnessExt.html">G2S_SetBlendBrightnessExt</A>, <A href="G2S_ChangeBlendAlpha.html">G2S_ChangeBlendAlpha</A>, <A href="G2S_ChangeBlendBrightness.html">G2S_ChangeBlendBrightness</A></CODE></P> 41<H2>Revision History</H2> 42<P>2004/02/09 Initial version.</P> 43<hr><p>CONFIDENTIAL</p></body> 44</html> 45