Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > c87dfbd6f7f653536d7b07ed7038c9d8 > files > 3417

clanlib0.8-docs-0.8.1-6.mga1.i586.rpm


<!-- clanlib header begin -->
<HTML>
<HEAD>
<TITLE>CL_SpriteDescription::add_alphaclipped_frames_free - 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_free</h1>
<p>  Adds images separated with pure alpha (within trans_limit).</p>
<pre>
	void add_alphaclipped_frames_free(
		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 scans the lines horizontally
  from top to bottom. As soon as a non-transarent pixel is discovered,
  the clipper finds the bounding box for that region and then moves on.</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 -->