Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > by-pkgid > 98920281af4e2e96d5ea984cee4f9e2f > files > 3419

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


<!-- clanlib header begin -->
<HTML>
<HEAD>
<TITLE>CL_SpriteDescription::add_gridclipped_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_gridclipped_frames</h1>
<p>  Adds images formed in a grid.</p>
<pre>
	void add_gridclipped_frames(
		CL_PixelBuffer provider, int xpos, int ypos, int width, int height, int xarray = 1, int yarray = 1, int array_skipframes = 0, int xspacing = 0, int yspacing = 0);
</pre>
<p><b>Parameters:</b></p>
<dl>
<dt><i>provider</i></dt><dd>Image source.</dd>
<dt><i>xpos, ypos</i></dt><dd>Position of where image grid starts.</dd>
<dt><i>width, height</i></dt><dd>Size of a frame in the grid.</dd>
<dt><i>xarray, yarray</i></dt><dd>Number of columns and rows in grid.</dd>
<dt><i>array_skipframes</i></dt><dd>Number of frames to skip at last gridline.</dd>
<dt><i>xspacing, yspacing</i></dt><dd>Pixel interspacing between grid frames.</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>This function will cut out a grid of frames from one image.</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 -->