1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transistional//EN"><html><head><title>OpenLayer Offline Manual</title><style type="text/css" media="all">@import "../CrystalStyle.css";</style><body bgcolor="FFFFFF" ><div align="center" style="pagestyle"><table width="60%"><tr><td><div class="parentLinks"><a href="../index.html">OpenLayer</a> | <a href="../RenderMode.html">RenderMode</a> | <a href="../RenderMode/Tinted.html">Tinted</a></div><br><div class="BigHeader">Tinted</div><br><div class="">Renders the bitmap tinted to a color.
<br>
<br><div class="Surrounded"><table><tr valign="top"><td align="right"><div class="FuncDef"><strong><a href="../RenderMode/Tinted.html"><font color="#0000CC">Tinted</font></a>(</strong></div></td><td><div class="FuncDef"><strong><a href="../Rgba.html"><font color="#0000CC">Rgba</font></a> color );
<br></strong></div></td></tr></table>
<br>The Bitmap will be tinted to the given color.The alpha value of the color tells the intensity of the tinting.
<br></div>
<br>Note that only one tint effect can take effect at a time!
<br>
<br>The old name for this class is TintMode. The old name can still be used. If you wish to disable the new class names, compile OpenLayer with OL_NO_RENDER_MODE_ALIASES.</div><br><div class="MediumHeader">Examples</div><br><div class="Code"><font color="#999922">// Load a bitmap //</font>
<br><a href="../Bitmap.html"><font color="#0000CC">Bitmap</font></a> myBmp( ... );
<br>
<br><font color="#999922">// Render the bitmap to the screen such as the top-left corner is at x = 200.0, y = 100.0 //</font>
<br><font color="#999922">// and the bitmap is tinted 35% to red //</font>
<br>myBmp.<a href="../Bitmap/Blit.html"><font color="#0000CC">Blit</font></a>( <font color="#994400">200.0</font>, <font color="#994400">100.0</font>, <a href="../RenderMode/Tinted.html"><font color="#0000CC">Tinted</font></a>( <a href="../Rgba.html"><font color="#0000CC">Rgba</font></a>( <font color="#994400">1.0</font>, <font color="#994400">0.0</font>, <font color="#994400">0.0</font>, <font color="#994400">0.35</font> )));</div><div class=""><br><br><div class="MediumHeader">Parent Class</div><div class="Surrounded"><a href="../RenderMode.html">RenderMode</a></div><br><div class=""><a href="../index.html">Back to the main page of the manual</a></div><br>Questions about Tinted? Click <a href="http://crystalstorm.ath.cx/index.php?lan=en&page=CreateFeedback&subject=Tinted">here.</a></div></td></tr></table></body></html>
|