Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > c31bd254217aaa94cdc6327ba697d385 > files > 91

nip2-7.22.2-1.fc14.2.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  
  "http://www.w3.org/TR/html4/loose.dtd">  
<html > 
<head><title>Calling VIPS functions</title> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
<meta name="generator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)"> 
<meta name="originator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)"> 
<!-- 3,html --> 
<meta name="src" content="nipguide.tex"> 
<meta name="date" content="2010-06-30 13:34:00"> 
<link rel="stylesheet" type="text/css" href="nipguide.css"> 
</head><body 
>
  <!--l. 1558--><div class="crosslinks"><p class="noindent">[<a 
href="nipguidese35.html" >prev</a>] [<a 
href="nipguidese35.html#tailnipguidese35.html" >prev-tail</a>] [<a 
href="#tailnipguidese36.html">tail</a>] [<a 
href="nipguidech6.html#nipguidese36.html" >up</a>] </p></div>
  <h3 class="sectionHead"><span class="titlemark">6.15    </span> <a 
 id="x47-880006.15"></a>Calling VIPS functions</h3>
<!--l. 1559--><p class="noindent" ><a name="nip_label_sec:callvips"></a>
<!--l. 1561--><p class="indent" >  You can call any VIPS operation which has the following
properties:
    <ul class="itemize1">
    <li class="itemize">There must be at least 1 output argument. If there&#8217;s
    a single output argument, that becomes the value
    of the function. If there is more than one output,
    then the function returns a list with the outputs as
    members.
    </li>
    <li class="itemize">The output arguments must all be one of:
        <ul class="itemize2">
        <li class="itemize"><span class="obeylines-h"><span class="verb"><span 
class="pcrr7t-">IM_TYPE_DOUBLE</span></span></span>,
        </li>
        <li class="itemize"><span class="obeylines-h"><span class="verb"><span 
class="pcrr7t-">IM_TYPE_INT</span></span></span>,
        </li>
        <li class="itemize"><span class="obeylines-h"><span class="verb"><span 
class="pcrr7t-">IM_TYPE_COMPLEX</span></span></span>,
        </li>
        <li class="itemize"><span class="obeylines-h"><span class="verb"><span 
class="pcrr7t-">IM_TYPE_STRING</span></span></span>,
        </li>
        <li class="itemize"><span class="obeylines-h"><span class="verb"><span 
class="pcrr7t-">IM_TYPE_IMAGE</span></span></span>,
        </li>
        <li class="itemize"><span class="obeylines-h"><span class="verb"><span 
class="pcrr7t-">IM_TYPE_DOUBLEVEC</span></span></span>,
        </li>
        <li class="itemize"><span class="obeylines-h"><span class="verb"><span 
class="pcrr7t-">IM_TYPE_DMASK</span></span></span>,
        </li>
        <li class="itemize"><span class="obeylines-h"><span class="verb"><span 
class="pcrr7t-">IM_TYPE_IMASK</span></span></span></li></ul>
    </li>
    <li class="itemize">The input arguments must all be one of the types
    above, or <span class="obeylines-h"><span class="verb"><span 
class="pcrr7t-">IM_TYPE_DISPLAY</span></span></span>. If an argument is an
    input display, <span 
class="pcrr7t-">nip2 </span>passes in its current display
    structure, it does not take a display from your
    program.
    </li></ul>                                         <!--l. 1591--><p class="indent" >    When <span 
class="pcrr7t-">nip2 </span>starts up, it loads any VIPS plug ins it can
  find on its data search path. You can call functions from
  plug ins in just the same way. For information on writing
  plug ins, see the <span 
class="ptmri7t-">VIPS Manual</span>.
                                                                                       

                                                                                       
  <!--l. 80--><div class="crosslinks"><p class="noindent">[<a 
href="nipguidese35.html" >prev</a>] [<a 
href="nipguidese35.html#tailnipguidese35.html" >prev-tail</a>] [<a 
href="nipguidese36.html" >front</a>] [<a 
href="nipguidech6.html#nipguidese36.html" >up</a>] </p></div>
<!--l. 80--><p class="indent" >  <a 
 id="tailnipguidese36.html"></a>  
</body></html>