Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release > by-pkgid > 98920281af4e2e96d5ea984cee4f9e2f > files > 3416

clanlib0.8-docs-0.8.1-5mdv2010.1.i586.rpm


<!-- clanlib header begin -->
<HTML>
<HEAD>
<TITLE>CL_SpriteDescription::add_alphaclipped_frames - ClanLib Game SDK</TITLE>
<STYLE TYPE="text/css"><!--
HTML BODY
{
	font-family: verdana, helvetica, sans-serif;
	font-size: 12px;
}
H1 { font-size: 22px; }
H2 { font-size: 18px; }
H3 { font-size: 16px; }
H4 { font-size: 14px; }
P { font-size: 12px; }
LI { font-size: 12px; }
--></STYLE>
</HEAD>

<body bgcolor=white text=black link=blue vlink=#800080>

<center>
<img src="http://clanlib.org/gfx/clanlib.png">
</center>
<!-- clanlib header end -->

<center>
<p>
<a href="http://clanlib.org/docs.html">Home</a> |
<a href="classes.html">All Classes</a> |
<a href="modules.html">Grouped Classes</a> |
<a href="index.html">Index</a> |
<a href="search.html">Search</a>
</p>
</center>
<h1>CL_SpriteDescription::add_alphaclipped_frames</h1>
<p>  Adds images separated with pure alpha (within trans_limit).</p>
<pre>
	void add_alphaclipped_frames(
		CL_PixelBuffer provider, int xpos = 0, int ypos = 0, float trans_limit = 0.05f);
</pre>
<p><b>Parameters:</b></p>
<dl>
<dt><i>provider</i></dt><dd>Image source.</dd>
<dt><i>xpos, ypos</i></dt><dd>Upper left position where alpha cutting should begin.</dd>
<dt><i>trans_limit</i></dt><dd>Amount of non-transparent alpha allowed before a pixel is not considered transparent.</dd>
<dt><i>delete_provider</i></dt><dd>If true, deletes provider when sprite description is destroyed.</dd>
</dl>
<p><b>Detailed description:</b></p>  <p>The alpha clipper will cut out frames from an image based on
  the transparency in the picture. It first determines the height
  of a row by searching for the first line that it considers
  completely transparent. Then it finds the width of each frame on
  this line by looking for columns that are completely transparency.</p>
<p><b>See also:</b></p>
<p><a href="CL_SpriteDescription.html">CL_SpriteDescription</a> | <a href="CL_PixelBuffer.html">CL_PixelBuffer</a></p>


<!-- clanlib footer begin -->

<center><br><br><font color="#a0a0a0">
Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>.
</font></center>

</body>
</html>
<!-- clanlib footer end -->