~lfaraone/ubuntu/maverick/imagemagick/graphviz-rebuild

« back to all changes in this revision

Viewing changes to www/api/pixel-view.html

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-11-21 08:26:29 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20081121082629-iy01ycd87bs5fn2g
Tags: 7:6.4.5.4.dfsg1-1ubuntu1
* Merge with Debian; remaining changes:
  - (Build-)depend on libltdl7-dev instead of libltdl3-dev (the armel buildds
    currently have both available).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
3
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
 
4
<head>
 
5
  <style type="text/css" media="screen,projection"><!--
 
6
    @import url("../../www/magick.css");
 
7
  //--></style>
 
8
  <meta name="verify-v1" content="g222frIIxcQTrvDR3NBRUSKP3AnMNoqxOkIniCEkV7U=" />
 
9
  <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf" />
 
10
  <title>ImageMagick: MagickWand, C API for ImageMagick: Pixel View Methods</title>
 
11
  <meta http-equiv="Content-Language" content="en-US"/>
 
12
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
 
13
  <meta http-equiv="Reply-to" content="magick-users@imagemagick.org"/>
 
14
  <meta name="Generator" content="PHP"/>
 
15
  <meta name="Keywords" content="magickwc, api, for, imagemagick:, pixel, view, methods, ImageMagick, ImageMagic, MagickCore, MagickWand, PerlMagick, Magick++, RMagick, PythonMagick, JMagick, TclMagick, Image, Magick, Magic, Wand, ImageMagickObject"/>
 
16
  <meta name="Description" content="ImageMagick® is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (about 100) including GIF, JPEG, JPEG-2000, PNG, PDF, PhotoCD, TIFF, and DPX. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.  ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you can freely use, copy, modify, and distribute. Its license is compatible with the GPL. It runs on all major operating systems.  The functionality of ImageMagick is typically utilized from the command line or you can use the features from programs written in your favorite programming language. Choose from these interfaces: MagickCore (C), MagickWand (C), ChMagick (Ch), Magick++ (C++), JMagick (Java), L-Magick (Lisp), PascalMagick (Pascal), PerlMagick (Perl), MagickWand for PHP (PHP), PythonMagick (Python), RMagick (Ruby), or TclMagick (Tcl/TK). With a language interface, use ImageMagick to modify or create images automagically and dynamically."/>
 
17
  <meta name="Rating" content="GENERAL"/>
 
18
  <meta name="Robots" content="INDEX, FOLLOW"/>
 
19
  <meta name="Generator" content="ImageMagick Studio LLC"/>
 
20
  <meta name="Author" content="ImageMagick Studio LLC"/>
 
21
  <meta name="Revisit-after" content="2 DAYS"/>
 
22
  <meta name="Resource-type" content="document"/>
 
23
  <meta name="Copyright" content="Copyright (c) 1999-2008 ImageMagick Studio LLC"/>
 
24
  <meta name="Distribution" content="Global"/>
 
25
  <link rel="shortcut icon" href="../../images/wand.ico"  type="images/vnd.microsoft.icon"/>
 
26
</head>
 
27
 
 
28
<body id="www-imagemagick-org">
 
29
  <table id="titlebar" style="width: 100%;background-color: #f5f5f5" cellpadding="0" cellspacing="0" border="0" summary="ImageMagick">
 
30
    <tbody>
 
31
      <tr valign="top">
 
32
        <td align="left"><a href="../../index.html"><img id="titlebar-west" src="../../images/script.png" alt="[ImageMagick]" width="350" height="60" vspace="28" name="titlebar-west"/></a></td>
 
33
        <td align="left"><a href="http://www.networkredux.com" target="803667562"><img id="titlebar-west" src="../../images/networkredux.png" alt="[sponsor]" border="0" vspace="45" name="titlebar-west"/></a></td>
 
34
        <td width="99%"><br /> </td>
 
35
        <td style="background-color: white" align="right"><a href="../../index.html"><img src="../../images/sprite.jpg" alt="" width="114" height="118" border="0" name="titlebar-east"/></a></td>
 
36
        <td style="background-color: white" align="right"><a href="http://www.imagemagick.org/discourse-server/" target="757660912"><img id="titlebar-east" src="../../images/logo.jpg" alt="" width="114" height="118" border="0" name="titlebar-east"/></a></td>
 
37
      </tr>
 
38
    </tbody>
 
39
  </table>
 
40
 
 
41
  <table style="width: 100%" border="0" cellpadding="0" cellspacing="0" summary="">
 
42
  <tbody>
 
43
 
 
44
    <tr valign="top" style="height: 100%;">
 
45
      <td id="menu" width="1%" height="100%">
 
46
      <p><a href="#main">Skip to page contents</a></p>
 
47
      <font size="-1">
 
48
      <span>[</span>
 
49
      <a href="../../index.html">About ImageMagick</a>
 
50
  <span>]</span><br /><span>[</span>
 
51
      <a href="../../www/command-line-tools.html">Command-line Tools</a>
 
52
      <a href="../../www/command-line-processing.html" class="sub">Processing</a>
 
53
      <a href="../../www/command-line-options.html" class="sub">Options</a>
 
54
      <a href="http://www.imagemagick.org/Usage/" target="211599108" class="sub">Usage</a>
 
55
      <a href="../../www/api.html">Program Interfaces</a>
 
56
      <a href="../../www/magick-wand.html" class="sub">MagickWand</a>
 
57
      <a href="../../www/magick-core.html" class="sub">MagickCore</a>
 
58
      <a href="../../www/perl-magick.html" class="sub">PerlMagick</a>
 
59
      <a href="../../Magick++/" target="470508496" class="sub">Magick++</a>
 
60
      <a href="../../www/architecture.html">Architecture</a>
 
61
  <span>]</span><br /><span>[</span>
 
62
      <a href="../../www/install-source.html">Install from Source</a>
 
63
      <a href="../../www/install-source.html#unix" class="sub">Unix</a>
 
64
      <a href="../../www/install-source.html#windows" class="sub">Windows</a>
 
65
      <a href="../../www/binary-releases.html">Binary Releases</a>
 
66
      <a href="../../www/binary-releases.html#unix" class="sub">Unix</a>
 
67
      <a href="../../www/binary-releases.html#macosx" class="sub">Mac OS X</a>
 
68
      <a href="../../www/binary-releases.html#windows" class="sub">Windows</a>
 
69
      <a href="../../www/resources.html">Resources</a>
 
70
  <span>]</span><br /><span>[</span>
 
71
      <a href="../../www/download.html">Download</a>
 
72
  <span>]</span><br /><span>[</span>
 
73
      <a href="../../www/sitemap.html">Site Map</a>
 
74
                        <a href="../../www/links.html" class="sub">Links</a>
 
75
  <span>]</span><br /><span>[</span>
 
76
      <a href="../../www/sponsors.html">Sponsors:</a>
 
77
      <fieldset>
 
78
  <a href="http://www.produkte24.com" class="sponsor" target="sponsor">Kataloge zum<br />Herunterladen</a><!-- 200910010000 -->
 
79
      <br />
 
80
      <a href="http://meta-preisvergleich.de" class="sponsor" target="sponsor">Preisvergleich</a><!-- 200901010120 -->
 
81
      <br />
 
82
      <a href="http://www.checkcost.co.uk" class="sponsor" target="sponsor">Compare</a><!-- 200902010720 -->
 
83
      <br />
 
84
      <a href="http://www.ecostsoftware.com" class="sponsor" target="sponsor">Software</a><!-- 200902010720 -->
 
85
      <br />
 
86
      <a href="http://www.callerbase.com" class="sponsor" target="sponsor">Phone Number<br />Search</a><!-- 200812010040 -->
 
87
      <br />
 
88
      <a href="http://www.online-kredit-index.de" class="sponsor" target="sponsor">Kredit</a><!-- 200903010120 -->
 
89
      <br />
 
90
      <a href="http://www.posters555.com" class="sponsor" target="sponsor">Poster</a><!-- 200903010800 -->
 
91
      <br />
 
92
      <a href="http://www.iceposter.com" class="sponsor" target="sponsor">Posters</a><!-- 200812010200 -->
 
93
      <br />
 
94
      <a href="http://www.imade-art.de"><img src="../../images/imade_art2.jpg" alt="[Kunst bei imade-art]" width="116" height="28" border="0" name="Kunst bei imade-art"/></a> <!-- 200811010160 -->
 
95
      </fieldset>
 
96
      <span>]</span>
 
97
      </font>
 
98
      </td>
 
99
 
 
100
      <td id="main" valign="top">
 
101
<p class="navigation-index">[ <a href="#ClonePixelView">ClonePixelView</a> | <a href="#DestroyPixelView">DestroyPixelView</a> | <a href="#DuplexTransferPixelViewIterator">DuplexTransferPixelViewIterator</a> | <a href="#GetPixelViewException">GetPixelViewException</a> | <a href="#GetPixelViewHeight">GetPixelViewHeight</a> | <a href="#GetPixelViewIterator">GetPixelViewIterator</a> | <a href="#GetPixelViewPixels">GetPixelViewPixels</a> | <a href="#GetPixelViewWand">GetPixelViewWand</a> | <a href="#GetPixelViewWidth">GetPixelViewWidth</a> | <a href="#GetPixelViewX">GetPixelViewX</a> | <a href="#GetPixelViewY">GetPixelViewY</a> | <a href="#IsPixelView">IsPixelView</a> | <a href="#NewPixelView">NewPixelView</a> | <a href="#NewPixelViewRegion">NewPixelViewRegion</a> | <a href="#SetPixelViewIterator">SetPixelViewIterator</a> | <a href="#TransferPixelViewIterator">TransferPixelViewIterator</a> | <a href="#UpdatePixelViewIterator">UpdatePixelViewIterator</a> ]</p>
 
102
 
 
103
<div style="margin: auto;">
 
104
  <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-view
 
105
_8c.html" target="source" name="ClonePixelView">ClonePixelView</a></h2>
 
106
</div>
 
107
 
 
108
<p>ClonePixelView() makes a copy of the specified pixel view.</p></ol>
 
109
 
 
110
<p>The format of the ClonePixelView method is:</p>
 
111
 
 
112
<pre class="code">
 
113
  PixelView *ClonePixelView(const PixelView *pixel_view)
 
114
</pre>
 
115
 
 
116
<p>A description of each parameter follows:</p></ol>
 
117
 
 
118
<h5>pixel_view</h5>
 
119
<ol><p>the pixel view.</p></ol>
 
120
 
 
121
<div style="margin: auto;">
 
122
  <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-view
 
123
_8c.html" target="source" name="DestroyPixelView">DestroyPixelView</a></h2>
 
124
</div>
 
125
 
 
126
<p>DestroyPixelView() deallocates memory associated with a pixel view.</p></ol>
 
127
 
 
128
<p>The format of the DestroyPixelView method is:</p>
 
129
 
 
130
<pre class="code">
 
131
  PixelView *DestroyPixelView(PixelView *pixel_view)
 
132
</pre>
 
133
 
 
134
<p>A description of each parameter follows:</p></ol>
 
135
 
 
136
<h5>pixel_view</h5>
 
137
<ol><p>the pixel view.</p></ol>
 
138
 
 
139
<div style="margin: auto;">
 
140
  <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-view
 
141
_8c.html" target="source" name="DuplexTransferPixelViewIterator">DuplexTransferPixelViewIterator</a></h2>
 
142
</div>
 
143
 
 
144
<p>DuplexTransferPixelViewIterator() iterates over three pixel views in parallel and calls your transfer method for each scanline of the view.  The source and duplex pixel region is not confined to the image canvas-- that is you can include negative offsets or widths or heights that exceed the image dimension.  However, the destination pixel view is confined to the image canvas-- that is no negative offsets or widths or heights that exceed the image dimension are permitted.</p></ol>
 
145
 
 
146
<p>Use this pragma:</p>
 
147
 
 
148
<pre class="text">
 
149
      #pragma omp critical
 
150
</pre>
 
151
 
 
152
<p>to define a section of code in your callback transfer method that must be executed by a single thread at a time.</p></ol>
 
153
 
 
154
<p>The format of the DuplexTransferPixelViewIterator method is:</p>
 
155
 
 
156
<pre class="code">
 
157
  MagickBooleanType DuplexTransferPixelViewIterator(PixelView *source,
 
158
    PixelView *duplex,PixelView *destination,
 
159
    DuplexTransferPixelViewMethod transfer,void *context)
 
160
</pre>
 
161
 
 
162
<p>A description of each parameter follows:</p></ol>
 
163
 
 
164
<h5>source</h5>
 
165
<ol><p>the source pixel view.</p></ol>
 
166
 
 
167
<h5>duplex</h5>
 
168
<ol><p>the duplex pixel view.</p></ol>
 
169
 
 
170
<h5>destination</h5>
 
171
<ol><p>the destination pixel view.</p></ol>
 
172
 
 
173
<h5>transfer</h5>
 
174
<ol><p>the transfer callback method.</p></ol>
 
175
 
 
176
<h5>context</h5>
 
177
<ol><p>the user defined context.</p></ol>
 
178
 
 
179
<div style="margin: auto;">
 
180
  <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-view
 
181
_8c.html" target="source" name="GetPixelViewException">GetPixelViewException</a></h2>
 
182
</div>
 
183
 
 
184
<p>GetPixelViewException() returns the severity, reason, and description of any error that occurs when utilizing a pixel view.</p></ol>
 
185
 
 
186
<p>The format of the GetPixelViewException method is:</p>
 
187
 
 
188
<pre class="code">
 
189
  char *GetPixelViewException(const PixelWand *pixel_view,
 
190
    ExceptionType *severity)
 
191
</pre>
 
192
 
 
193
<p>A description of each parameter follows:</p></ol>
 
194
 
 
195
<h5>pixel_view</h5>
 
196
<ol><p>the pixel pixel_view.</p></ol>
 
197
 
 
198
<h5>severity</h5>
 
199
<ol><p>the severity of the error is returned here.</p></ol>
 
200
 
 
201
<div style="margin: auto;">
 
202
  <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-view
 
203
_8c.html" target="source" name="GetPixelViewHeight">GetPixelViewHeight</a></h2>
 
204
</div>
 
205
 
 
206
<p>GetPixelViewHeight() returns the pixel view height.</p></ol>
 
207
 
 
208
<p>The format of the GetPixelViewHeight method is:</p>
 
209
 
 
210
<pre class="code">
 
211
  unsigned long GetPixelViewHeight(const PixelView *pixel_view)
 
212
</pre>
 
213
 
 
214
<p>A description of each parameter follows:</p></ol>
 
215
 
 
216
<h5>pixel_view</h5>
 
217
<ol><p>the pixel view.</p></ol>
 
218
 
 
219
<div style="margin: auto;">
 
220
  <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-view
 
221
_8c.html" target="source" name="GetPixelViewIterator">GetPixelViewIterator</a></h2>
 
222
</div>
 
223
 
 
224
<p>GetPixelViewIterator() iterates over the pixel view in parallel and calls your get method for each scanline of the view.  The pixel region is not confined to the image canvas-- that is you can include negative offsets or widths or heights that exceed the image dimension.  Any updates to the pixels in your callback are ignored.</p></ol>
 
225
 
 
226
<p>Use this pragma:</p>
 
227
 
 
228
<pre class="text">
 
229
      #pragma omp critical
 
230
</pre>
 
231
 
 
232
<p>to define a section of code in your callback get method that must be executed by a single thread at a time.</p></ol>
 
233
 
 
234
<p>The format of the GetPixelViewIterator method is:</p>
 
235
 
 
236
<pre class="code">
 
237
  MagickBooleanType GetPixelViewIterator(PixelView *source,
 
238
    GetPixelViewMethod get,void *context)
 
239
</pre>
 
240
 
 
241
<p>A description of each parameter follows:</p></ol>
 
242
 
 
243
<h5>source</h5>
 
244
<ol><p>the source pixel view.</p></ol>
 
245
 
 
246
<h5>get</h5>
 
247
<ol><p>the get callback method.</p></ol>
 
248
 
 
249
<h5>context</h5>
 
250
<ol><p>the user defined context.</p></ol>
 
251
 
 
252
<div style="margin: auto;">
 
253
  <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-view
 
254
_8c.html" target="source" name="GetPixelViewPixels">GetPixelViewPixels</a></h2>
 
255
</div>
 
256
 
 
257
<p>GetPixelViewPixels() returns the pixel view pixel_wands.</p></ol>
 
258
 
 
259
<p>The format of the GetPixelViewPixels method is:</p>
 
260
 
 
261
<pre class="code">
 
262
  PixelWand *GetPixelViewPixels(const PixelView *pixel_view)
 
263
</pre>
 
264
 
 
265
<p>A description of each parameter follows:</p></ol>
 
266
 
 
267
<h5>pixel_view</h5>
 
268
<ol><p>the pixel view.</p></ol>
 
269
 
 
270
<div style="margin: auto;">
 
271
  <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-view
 
272
_8c.html" target="source" name="GetPixelViewWand">GetPixelViewWand</a></h2>
 
273
</div>
 
274
 
 
275
<p>GetPixelViewWand() returns the magick wand associated with the pixel view.</p></ol>
 
276
 
 
277
<p>The format of the GetPixelViewWand method is:</p>
 
278
 
 
279
<pre class="code">
 
280
  MagickWand *GetPixelViewWand(const PixelView *pixel_view)
 
281
</pre>
 
282
 
 
283
<p>A description of each parameter follows:</p></ol>
 
284
 
 
285
<h5>pixel_view</h5>
 
286
<ol><p>the pixel view.</p></ol>
 
287
 
 
288
<div style="margin: auto;">
 
289
  <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-view
 
290
_8c.html" target="source" name="GetPixelViewWidth">GetPixelViewWidth</a></h2>
 
291
</div>
 
292
 
 
293
<p>GetPixelViewWidth() returns the pixel view width.</p></ol>
 
294
 
 
295
<p>The format of the GetPixelViewWidth method is:</p>
 
296
 
 
297
<pre class="code">
 
298
  unsigned long GetPixelViewWidth(const PixelView *pixel_view)
 
299
</pre>
 
300
 
 
301
<p>A description of each parameter follows:</p></ol>
 
302
 
 
303
<h5>pixel_view</h5>
 
304
<ol><p>the pixel view.</p></ol>
 
305
 
 
306
<div style="margin: auto;">
 
307
  <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-view
 
308
_8c.html" target="source" name="GetPixelViewX">GetPixelViewX</a></h2>
 
309
</div>
 
310
 
 
311
<p>GetPixelViewX() returns the pixel view x offset.</p></ol>
 
312
 
 
313
<p>The format of the GetPixelViewX method is:</p>
 
314
 
 
315
<pre class="code">
 
316
  long GetPixelViewX(const PixelView *pixel_view)
 
317
</pre>
 
318
 
 
319
<p>A description of each parameter follows:</p></ol>
 
320
 
 
321
<h5>pixel_view</h5>
 
322
<ol><p>the pixel view.</p></ol>
 
323
 
 
324
<div style="margin: auto;">
 
325
  <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-view
 
326
_8c.html" target="source" name="GetPixelViewY">GetPixelViewY</a></h2>
 
327
</div>
 
328
 
 
329
<p>GetPixelViewY() returns the pixel view y offset.</p></ol>
 
330
 
 
331
<p>The format of the GetPixelViewY method is:</p>
 
332
 
 
333
<pre class="code">
 
334
  long GetPixelViewY(const PixelView *pixel_view)
 
335
</pre>
 
336
 
 
337
<p>A description of each parameter follows:</p></ol>
 
338
 
 
339
<h5>pixel_view</h5>
 
340
<ol><p>the pixel view.</p></ol>
 
341
 
 
342
<div style="margin: auto;">
 
343
  <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-view
 
344
_8c.html" target="source" name="IsPixelView">IsPixelView</a></h2>
 
345
</div>
 
346
 
 
347
<p>IsPixelView() returns MagickTrue if the the parameter is verified as a pixel view container.</p></ol>
 
348
 
 
349
<p>The format of the IsPixelView method is:</p>
 
350
 
 
351
<pre class="code">
 
352
  MagickBooleanType IsPixelView(const PixelView *pixel_view)
 
353
</pre>
 
354
 
 
355
<p>A description of each parameter follows:</p></ol>
 
356
 
 
357
<h5>pixel_view</h5>
 
358
<ol><p>the pixel view.</p></ol>
 
359
 
 
360
<div style="margin: auto;">
 
361
  <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-view
 
362
_8c.html" target="source" name="NewPixelView">NewPixelView</a></h2>
 
363
</div>
 
364
 
 
365
<p>NewPixelView() returns a pixel view required for all other methods in the Pixel View API.</p></ol>
 
366
 
 
367
<p>The format of the NewPixelView method is:</p>
 
368
 
 
369
<pre class="code">
 
370
  PixelView *NewPixelView(MagickWand *wand)
 
371
</pre>
 
372
 
 
373
<p>A description of each parameter follows:</p></ol>
 
374
 
 
375
<h5>wand</h5>
 
376
<ol><p>the wand.</p></ol>
 
377
 
 
378
<div style="margin: auto;">
 
379
  <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-view
 
380
_8c.html" target="source" name="NewPixelViewRegion">NewPixelViewRegion</a></h2>
 
381
</div>
 
382
 
 
383
<p>NewPixelViewRegion() returns a pixel view required for all other methods in the Pixel View API.</p></ol>
 
384
 
 
385
<p>The format of the NewPixelViewRegion method is:</p>
 
386
 
 
387
<pre class="code">
 
388
  PixelView *NewPixelViewRegion(MagickWand *wand,const long x,
 
389
    const long y,const unsigned long width,const unsigned long height)
 
390
</pre>
 
391
 
 
392
<p>A description of each parameter follows:</p></ol>
 
393
 
 
394
<h5>wand</h5>
 
395
<ol><p>the magick wand.</p></ol>
 
396
 
 
397
<h5>x,y,columns,rows</h5>
 
398
<ol><p>These values define the perimeter of a region of pixel_wands view.</p></ol>
 
399
 
 
400
<div style="margin: auto;">
 
401
  <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-view
 
402
_8c.html" target="source" name="SetPixelViewIterator">SetPixelViewIterator</a></h2>
 
403
</div>
 
404
 
 
405
<p>SetPixelViewIterator() iterates over the pixel view in parallel and calls your set method for each scanline of the view.  The pixel region is confined to the image canvas-- that is no negative offsets or widths or heights that exceed the image dimension.  The pixels are initiallly undefined and any settings you make in the callback method are automagically synced back to your image.</p></ol>
 
406
 
 
407
<p>Use this pragma:</p>
 
408
 
 
409
<pre class="text">
 
410
      #pragma omp critical
 
411
</pre>
 
412
 
 
413
<p>to define a section of code in your callback set method that must be executed by a single thread at a time.</p></ol>
 
414
 
 
415
<p>The format of the SetPixelViewIterator method is:</p>
 
416
 
 
417
<pre class="code">
 
418
  MagickBooleanType SetPixelViewIterator(PixelView *destination,
 
419
    SetPixelViewMethod set,void *context)
 
420
</pre>
 
421
 
 
422
<p>A description of each parameter follows:</p></ol>
 
423
 
 
424
<h5>destination</h5>
 
425
<ol><p>the pixel view.</p></ol>
 
426
 
 
427
<h5>set</h5>
 
428
<ol><p>the set callback method.</p></ol>
 
429
 
 
430
<h5>context</h5>
 
431
<ol><p>the user defined context.</p></ol>
 
432
 
 
433
<div style="margin: auto;">
 
434
  <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-view
 
435
_8c.html" target="source" name="TransferPixelViewIterator">TransferPixelViewIterator</a></h2>
 
436
</div>
 
437
 
 
438
<p>TransferPixelViewIterator() iterates over two pixel views in parallel and calls your transfer method for each scanline of the view.  The source pixel region is not confined to the image canvas-- that is you can include negative offsets or widths or heights that exceed the image dimension. However, the destination pixel view is confined to the image canvas-- that is no negative offsets or widths or heights that exceed the image dimension are permitted.</p></ol>
 
439
 
 
440
<p>Use this pragma:</p>
 
441
 
 
442
<pre class="text">
 
443
      #pragma omp critical
 
444
</pre>
 
445
 
 
446
<p>to define a section of code in your callback transfer method that must be executed by a single thread at a time.</p></ol>
 
447
 
 
448
<p>The format of the TransferPixelViewIterator method is:</p>
 
449
 
 
450
<pre class="code">
 
451
  MagickBooleanType TransferPixelViewIterator(PixelView *source,
 
452
    PixelView *destination,TransferPixelViewMethod transfer,void *context)
 
453
</pre>
 
454
 
 
455
<p>A description of each parameter follows:</p></ol>
 
456
 
 
457
<h5>source</h5>
 
458
<ol><p>the source pixel view.</p></ol>
 
459
 
 
460
<h5>destination</h5>
 
461
<ol><p>the destination pixel view.</p></ol>
 
462
 
 
463
<h5>transfer</h5>
 
464
<ol><p>the transfer callback method.</p></ol>
 
465
 
 
466
<h5>context</h5>
 
467
<ol><p>the user defined context.</p></ol>
 
468
 
 
469
<div style="margin: auto;">
 
470
  <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-view
 
471
_8c.html" target="source" name="UpdatePixelViewIterator">UpdatePixelViewIterator</a></h2>
 
472
</div>
 
473
 
 
474
<p>UpdatePixelViewIterator() iterates over the pixel view in parallel and calls your update method for each scanline of the view.  The pixel region is confined to the image canvas-- that is no negative offsets or widths or heights that exceed the image dimension are permitted.  Updates to pixels in your callback are automagically synced back to the image.</p></ol>
 
475
 
 
476
<p>Use this pragma:</p>
 
477
 
 
478
<pre class="text">
 
479
      #pragma omp critical
 
480
</pre>
 
481
 
 
482
<p>to define a section of code in your callback update method that must be executed by a single thread at a time.</p></ol>
 
483
 
 
484
<p>The format of the UpdatePixelViewIterator method is:</p>
 
485
 
 
486
<pre class="code">
 
487
  MagickBooleanType UpdatePixelViewIterator(PixelView *source,
 
488
    UpdatePixelViewMethod update,void *context)
 
489
</pre>
 
490
 
 
491
<p>A description of each parameter follows:</p></ol>
 
492
 
 
493
<h5>source</h5>
 
494
<ol><p>the source pixel view.</p></ol>
 
495
 
 
496
<h5>update</h5>
 
497
<ol><p>the update callback method.</p></ol>
 
498
 
 
499
<h5>context</h5>
 
500
<ol><p>the user defined context.</p></ol>
 
501
 
 
502
      </td>
 
503
      <td id="margin" width="1%" height="100%" valign="top" align="right">&nbsp;</td>
 
504
    </tr>
 
505
  </tbody>
 
506
  </table>
 
507
  <div id="linkbar">
 
508
    <span id="linkbar-west">
 
509
      <font size="-1">
 
510
      </font>
 
511
    </span>
 
512
    <span id="linkbar-center">
 
513
      <a href="http://www.imagemagick.org/discourse-server/" target="121726703">Discourse Server</a> &bull;
 
514
      <a href="../../www/mailing-list.html">Mailing Lists</a> &bull;
 
515
      <a href="http://cafe.imagemagick.org" target="1511433165">Cafe</a> &bull;
 
516
    <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi" target="1178098251">Studio</a>
 
517
    </span>
 
518
    <span id="linkbar-east">
 
519
      <font size="-1">
 
520
      </font>
 
521
    </span>
 
522
  </div>
 
523
  <div id="footer">
 
524
    <span id="footer-west">&copy; 1999-2008 ImageMagick Studio LLC</span>
 
525
  </div>
 
526
  <div style="clear: both; margin: 0; width: 100%; "></div>
 
527
</body>
 
528
</html>