<!-- manual page source format generated by PolyglotMan v3.2, --> <!-- available at http://polyglotman.sourceforge.net/ --> <html> <head> <title>IM_INIT_WORLD(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_init_world, im_get_option_group - start up VIPS <h2><a name='sect1' href='#toc1'>Synopsis</a></h2> #include <vips/vips.h> <p> int im_init_world( const char *argv0 ) <br> GOptionGroup *im_get_option_group( void ); <h2><a name='sect2' href='#toc2'>Description</a></h2> <a href='im_init_world.3.html'><b>im_init_world(3)</a> </b> starts up the VIPS library. It: <p> - initialises any libraries that VIPS is using, including GObject<br> - starts up the threading system<br> - guesses where the VIPS data files are and sets up i18n<br> - loads any plugins from libdir/vips-x.x<br> <p> The <b>argv0</b> argument is the value of <b>argv[0] </b> your program was passed by the host operating system. VIPS uses this with <a href='im_guess_prefix.3.html'><b>im_guess_prefix(3)</b></a> to try to find the various VIPS data files. <p> <h2><a name='sect3' href='#toc3'>Example</a></h2> <p> int<br> main( int argc, char **argv )<br> {<br> if( im_init_world( argv[0] ) )<br> error_exit( "unable to start VIPS" );<br> <p> return( 0 );<br> }<br> <p> <a href='im_get_option_group.3.html'><b>im_get_option_group(3)</a> </b> returns a <b>GOptionGroup</b> containing various VIPS command-line options. It can be used with GOption to help parse argc/argv. <p> <h2><a name='sect4' href='#toc4'>See Also</a></h2> <a href='im_guess_prefix.3.html'>im_guess_prefix(3)</a> , <a href='im_guess_libdir.3.html'>im_guess_libdir(3)</a> , <a href='GOption.3.html'>GOption(3)</a> <h2><a name='sect5' href='#toc5'>Copyright</a></h2> Birkbeck College and the National Gallery (c) 1994 <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'>Example</a></li> <li><a name='toc4' href='#sect4'>See Also</a></li> <li><a name='toc5' href='#sect5'>Copyright</a></li> </ul> </body> </html>