<!-- manual page source format generated by PolyglotMan v3.2, --> <!-- available at http://polyglotman.sourceforge.net/ --> <html> <head> <title>IM_GRID(3) manual page</title> </head> <body bgcolor='white'> <a href='#toc'>Table of Contents</a><p> <h2><a name='sect0' href='#toc0'>Name</a></h2> im_grid - split a vertical image into a grid of smaller images <h2><a name='sect1' href='#toc1'>Synopsis</a></h2> <b>#include <vips/vips.h></b> <p> int <br> im_grid( IMAGE *in, IMAGE *out, <br> int tile_height, int across, int down )<br> <h2><a name='sect2' href='#toc2'>Description</a></h2> <a href='im_grid.3.html'><b>im_grid(3)</b></a> slices image <b>in </b> into a set of tiles, each the same width as <b>in</b> and of height <b>tile_height</b> and rearranges the tiles into a grid with <b>across</b> tiles across and <b>down</b> tiles down. <p> It is useful for loading volumetric images (for example, CT or PET scans) where more than 2 dimensions need to be displayed. <p> The current implementation is optimised for the case where image <b>in</b> is thin and tall and <b>across</b> and <b>down</b> are large. <p> <h2><a name='sect3' href='#toc3'>Return Value</a></h2> The function returns 0 on success and -1 on error. <h2><a name='sect4' href='#toc4'>See Also</a></h2> <a href='im_extract_area.3.html'>im_extract_area(3)</a> , <a href='im_zoom.3.html'>im_zoom(3)</a> <h2><a name='sect5' href='#toc5'>Copyright</a></h2> Imperial College 2005 <p> <hr><p> <a name='toc'><b>Table of Contents</b></a><p> <ul> <li><a name='toc0' href='#sect0'>Name</a></li> <li><a name='toc1' href='#sect1'>Synopsis</a></li> <li><a name='toc2' href='#sect2'>Description</a></li> <li><a name='toc3' href='#sect3'>Return Value</a></li> <li><a name='toc4' href='#sect4'>See Also</a></li> <li><a name='toc5' href='#sect5'>Copyright</a></li> </ul> </body> </html>