<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_PixelBuffer::CL_PixelBuffer - 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_PixelBuffer::CL_PixelBuffer</h1> <p> Constructs a pixel buffer.</p> <pre> CL_PixelBuffer( int width, int height, int pitch, const CL_PixelFormat& format, void* data = 0); CL_PixelBuffer( int width, int height, int pitch, const CL_PixelFormat& format, const CL_Palette& palette, void* data = 0); CL_PixelBuffer( const CL_PixelBuffer& copy); CL_PixelBuffer(); CL_PixelBuffer( CL_PixelBuffer_Generic* impl); </pre> <p><b>Parameters:</b></p> <dl> <dt><i>width</i></dt><dd>Width of pixel buffer, in pixels.</dd> <dt><i>height</i></dt><dd>Height of pixel buffer, in pixels.</dd> <dt><i>pitch</i></dt><dd>Bytes per line in pixel buffer.</dd> <dt><i>format</i></dt><dd>Pixel format of pixel buffer.</dd> <dt><i>palette</i></dt><dd>Palette used in pixel buffer.</dd> <dt><i>data</i></dt><dd>Data pointer to pixel data. If null, will construct a memory pixel buffer with the given dimensions.</dd> </dl> <p><b>Detailed description:</b></p> <p>If the data pointer is not null, it will internally just point at the memory location specified by data. In other words, CL_PixelBuffer do not copy the data, and it does not delete the data pointer when destroyed itself.</p> <p><b>See also:</b></p> <p><a href="CL_Palette.html">CL_Palette</a> | <a href="CL_PixelFormat.html">CL_PixelFormat</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 -->