1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html >
<head><title>6 Programming</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="TeX4ht (http://www.tug.org/tex4ht/)">
<meta name="originator" content="TeX4ht (http://www.tug.org/tex4ht/)">
<!-- 3,html -->
<meta name="src" content="nipguide.tex">
<link rel="stylesheet" type="text/css" href="nipguide.css">
</head><body
>
<!--l. 1--><div class="crosslinks"><p class="noindent">[<a
href="nipguidech5.html" >prev</a>] [<a
href="nipguidech5.html#tailnipguidech5.html" >prev-tail</a>] [<a
href="#tailnipguidech6.html">tail</a>] [<a
href="nipguide.html#nipguidech6.html" >up</a>] </p></div>
<h2 class="chapterHead"><span class="titlemark">Chapter 6</span><br /><a
id="x31-570006"></a>Programming</h2>
<!--l. 2--><p class="noindent" ><a name="nip_label_sec:program"></a>
<!--l. 4--><p class="noindent" ><span
class="phvr7t-x-x-80">nip2 </span>includes a tiny lazy functional programming language.
You can use it to glue VIPS image processing functions
together to perform more complicated tasks. All of the <span
class="phvr7t-x-x-80">nip2</span>
toolkit menus are written in this language.
<!--l. 9--><p class="indent" > These first sections just describe the programming
language. See <span
class="cmsy-10"></span><a
href="nipguidese12.html#x20-380004.4">4.4<!--tex4ht:ref: sec:progwin --></a> for a description of the programming
window. You use <span
class="phvr7t-x-x-80">nip2</span>’s programming language to control
the user interface: the link between what happens inside a
<span
class="phvr7t-x-x-80">nip2 </span>function and what you see on the screen in covered in
<span
class="cmsy-10"></span><a
href="nipguidese33.html#x44-790006.12">6.12<!--tex4ht:ref: sec:bowser --></a>.
<div class="sectionTOCS">
 <span class="sectionToc" >6.1 <a
href="nipguidese22.html#x32-580006.1">Load and save</a></span>
<br />  <span class="sectionToc" >6.2 <a
href="nipguidese23.html#x33-590006.2">Using an external editor</a></span>
<br />  <span class="sectionToc" >6.3 <a
href="nipguidese24.html#x34-600006.3">Syntax</a></span>
<br />  <span class="sectionToc" >6.4 <a
href="nipguidese25.html#x35-610006.4">Naming conventions</a></span>
<br />  <span class="sectionToc" >6.5 <a
href="nipguidese26.html#x36-620006.5">Evaluation</a></span>
<br />  <span class="sectionToc" >6.6 <a
href="nipguidese27.html#x38-630006.6">Operators</a></span>
<br />   <span class="subsectionToc" >6.6.1 <a
href="nipguidese27.html#x38-640006.6.1">The real type</a></span>
<br />   <span class="subsectionToc" >6.6.2 <a
href="nipguidese27.html#x38-650006.6.2">The complex type</a></span>
<br />   <span class="subsectionToc" >6.6.3 <a
href="nipguidese27.html#x38-660006.6.3">The character type</a></span>
<br />   <span class="subsectionToc" >6.6.4 <a
href="nipguidese27.html#x38-670006.6.4">The boolean type</a></span>
<br />   <span class="subsectionToc" >6.6.5 <a
href="nipguidese27.html#x38-680006.6.5">The list type</a></span>
<br />   <span class="subsectionToc" >6.6.6 <a
href="nipguidese27.html#x38-690006.6.6">The function type</a></span>
<br />   <span class="subsectionToc" >6.6.7 <a
href="nipguidese27.html#x38-700006.6.7">The image type</a></span>
<br />  <span class="sectionToc" >6.7 <a
href="nipguidese28.html#x39-710006.7">Lists and recursion</a></span>
<br />  <span class="sectionToc" >6.8 <a
href="nipguidese29.html#x40-720006.8">Lazy programming</a></span>
<br />  <span class="sectionToc" >6.9 <a
href="nipguidese30.html#x41-730006.9">Pattern matching</a></span>
<br />  <span class="sectionToc" >6.10 <a
href="nipguidese31.html#x42-740006.10">The standard libraries</a></span>
<br />  <span class="sectionToc" >6.11 <a
href="nipguidese32.html#x43-750006.11">Classes</a></span>
<br />   <span class="subsectionToc" >6.11.1 <a
href="nipguidese32.html#x43-760006.11.1">Parameterised classes</a></span>
<br />   <span class="subsectionToc" >6.11.2 <a
href="nipguidese32.html#x43-770006.11.2">Inheritance</a></span>
<br />   <span class="subsectionToc" >6.11.3 <a
href="nipguidese32.html#x43-780006.11.3">Minor class features</a></span>
<br />  <span class="sectionToc" >6.12 <a
href="nipguidese33.html#x44-790006.12">Controlling the interface</a></span>
<br />   <span class="subsectionToc" >6.12.1 <a
href="nipguidese33.html#x44-800006.12.1">Tools and toolkits</a></span>
<br />   <span class="subsectionToc" >6.12.2 <a
href="nipguidese33.html#x44-830006.12.2">Workspaces</a></span>
<br />   <span class="subsectionToc" >6.12.3 <a
href="nipguidese33.html#x44-840006.12.3">The <span
class="phvr7t-x-x-80">Image </span>class</a></span>
<br />   <span class="subsectionToc" >6.12.4 <a
href="nipguidese33.html#x44-850006.12.4">The <span
class="phvr7t-x-x-80">Colour </span>class</a></span>
<br />  <span class="sectionToc" >6.13 <a
href="nipguidese34.html#x45-860006.13">The <span
class="phvr7t-x-x-80">_Object </span>class</a></span>
<br />  <span class="sectionToc" >6.14 <a
href="nipguidese35.html#x46-870006.14">Optimisation</a></span>
<br />  <span class="sectionToc" >6.15 <a
href="nipguidese36.html#x47-880006.15">Calling VIPS functions</a></span>
</div>
<!--l. 81--><div class="crosslinks"><p class="noindent">[<a
href="nipguidech5.html" >prev</a>] [<a
href="nipguidech5.html#tailnipguidech5.html" >prev-tail</a>] [<a
href="nipguidech6.html" >front</a>] [<a
href="nipguide.html#nipguidech6.html" >up</a>] </p></div>
<!--l. 81--><p class="indent" > <a
id="tailnipguidech6.html"></a>
</body></html>
|