Cristy | 594d277 | 2015-11-15 10:47:42 -0500 | [diff] [blame] | 1 | |
| 2 | |
| 3 | |
| 4 | |
cristy | 29dc865 | 2015-05-12 16:26:21 +0000 | [diff] [blame] | 5 | <!DOCTYPE html> |
cristy | 44443b9 | 2015-05-05 00:06:07 +0000 | [diff] [blame] | 6 | <html lang="en"> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 7 | <head> |
Cristy | 912a922 | 2016-06-17 15:37:28 -0400 | [diff] [blame] | 8 | <meta charset="utf-8" /> |
Cristy | 3b0b58d | 2016-11-06 07:40:23 -0500 | [diff] [blame] | 9 | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> |
| 10 | <meta http-equiv="x-ua-compatible" content="ie=edge" /> |
| 11 | <title>ImageMagick: MagickWand, C API for ImageMagick: Wand View Methods</title> |
Cristy | 594d277 | 2015-11-15 10:47:42 -0500 | [diff] [blame] | 12 | <meta http-equiv="content-type" content="text/html; charset=utf-8"/> |
| 13 | <meta name="application-name" content="ImageMagick"/> |
| 14 | <meta name="description" content="ImageMagick® is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, JPEG-2000, GIF, WebP, Postscript, PDF, and SVG. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves."/> |
Cristy | 3b0b58d | 2016-11-06 07:40:23 -0500 | [diff] [blame] | 15 | <meta name="application-url" content="https://www.imagemagick.org"/> |
Cristy | 594d277 | 2015-11-15 10:47:42 -0500 | [diff] [blame] | 16 | <meta name="generator" content="PHP"/> |
| 17 | <meta name="keywords" content="magickwc, api, for, imagemagick:, wview, methods, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert"/> |
| 18 | <meta name="rating" content="GENERAL"/> |
| 19 | <meta name="robots" content="INDEX, FOLLOW"/> |
| 20 | <meta name="generator" content="ImageMagick Studio LLC"/> |
| 21 | <meta name="author" content="ImageMagick Studio LLC"/> |
| 22 | <meta name="revisit-after" content="2 DAYS"/> |
| 23 | <meta name="resource-type" content="document"/> |
Cristy | 912a922 | 2016-06-17 15:37:28 -0400 | [diff] [blame] | 24 | <meta name="copyright" content="Copyright (c) 1999-2016 ImageMagick Studio LLC"/> |
Cristy | 594d277 | 2015-11-15 10:47:42 -0500 | [diff] [blame] | 25 | <meta name="distribution" content="Global"/> |
| 26 | <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1"/> |
Cristy | 912a922 | 2016-06-17 15:37:28 -0400 | [diff] [blame] | 27 | <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" /> |
Cristy | 3b0b58d | 2016-11-06 07:40:23 -0500 | [diff] [blame] | 28 | <link rel="canonical" href="wand-view.html"/> |
Cristy | 594d277 | 2015-11-15 10:47:42 -0500 | [diff] [blame] | 29 | <link rel="icon" href="../images/wand.png"/> |
| 30 | <link rel="shortcut icon" href="../images/wand.ico"/> |
Cristy | 3b0b58d | 2016-11-06 07:40:23 -0500 | [diff] [blame] | 31 | <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:900,400,400italic,700,700italic,300,300italic|Open+Sans:300italic,400italic,700italic,300,400,600,700"> |
Cristy | 594d277 | 2015-11-15 10:47:42 -0500 | [diff] [blame] | 32 | <link rel="stylesheet" href="../css/magick.html"/> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 33 | </head> |
cristy | 44443b9 | 2015-05-05 00:06:07 +0000 | [diff] [blame] | 34 | <body> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 35 | <div class="main"> |
cristy | 44443b9 | 2015-05-05 00:06:07 +0000 | [diff] [blame] | 36 | <div class="magick-masthead"> |
| 37 | <div class="container"> |
Cristy | 3b0b58d | 2016-11-06 07:40:23 -0500 | [diff] [blame] | 38 | <script async="async" src="https://localhost/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" |
Cristy | 594d277 | 2015-11-15 10:47:42 -0500 | [diff] [blame] | 39 | style="display:block" |
| 40 | data-ad-client="ca-pub-3129977114552745" |
| 41 | data-ad-slot="6345125851" |
| 42 | data-ad-format="auto"></ins> |
cristy | 29f2c97 | 2015-07-28 13:37:46 +0000 | [diff] [blame] | 43 | <script> |
Cristy | 542697a | 2015-10-12 20:10:32 -0400 | [diff] [blame] | 44 | (adsbygoogle = window.adsbygoogle || []).push({}); |
cristy | 44443b9 | 2015-05-05 00:06:07 +0000 | [diff] [blame] | 45 | </script> |
cristy | 44443b9 | 2015-05-05 00:06:07 +0000 | [diff] [blame] | 46 | <nav class="magick-nav"> |
cristy | 2f563d4 | 2015-05-06 23:36:51 +0000 | [diff] [blame] | 47 | <a class="magick-nav-item " href="../index.html">Home</a> |
cristy | ea2793e | 2015-05-31 16:52:26 +0000 | [diff] [blame] | 48 | <a class="magick-nav-item " href="../binary-releases.html">Download</a> |
cristy | 3818536 | 2015-05-07 20:09:56 +0000 | [diff] [blame] | 49 | <a class="magick-nav-item " href="../command-line-tools.html">Tools</a> |
Cristy | e93be68 | 2015-11-26 09:07:51 -0500 | [diff] [blame] | 50 | <a class="magick-nav-item " href="../command-line-processing.html">Command-line</a> |
cristy | ea2793e | 2015-05-31 16:52:26 +0000 | [diff] [blame] | 51 | <a class="magick-nav-item " href="../resources.html">Resources</a> |
| 52 | <a class="magick-nav-item " href="api.html">Develop</a> |
Cristy | 1f1f3a0 | 2016-06-01 07:25:42 -0400 | [diff] [blame] | 53 | <a class="magick-nav-item " href="http://www.imagemagick.org/script/search.php">Search</a> |
Cristy | 3b0b58d | 2016-11-06 07:40:23 -0500 | [diff] [blame] | 54 | <a class="magick-nav-item pull-right" href="http://www.imagemagick.org/discourse-server/">Community</a> |
cristy | 44443b9 | 2015-05-05 00:06:07 +0000 | [diff] [blame] | 55 | </nav> |
| 56 | </div> |
| 57 | </div> |
| 58 | <div class="container"> |
cristy | 4e638cd | 2015-05-07 16:47:40 +0000 | [diff] [blame] | 59 | <div class="magick-header"> |
Cristy | 594d277 | 2015-11-15 10:47:42 -0500 | [diff] [blame] | 60 | <p class="text-center"><a href="wand-view.html#CloneWandView">CloneWandView</a> • <a href="wand-view.html#DestroyWandView">DestroyWandView</a> • <a href="wand-view.html#DuplexTransferWandViewIterator">DuplexTransferWandViewIterator</a> • <a href="wand-view.html#GetWandViewException">GetWandViewException</a> • <a href="wand-view.html#GetWandViewExtent">GetWandViewExtent</a> • <a href="wand-view.html#GetWandViewIterator">GetWandViewIterator</a> • <a href="wand-view.html#GetWandViewPixels">GetWandViewPixels</a> • <a href="wand-view.html#GetWandViewWand">GetWandViewWand</a> • <a href="wand-view.html#IsWandView">IsWandView</a> • <a href="wand-view.html#NewWandView">NewWandView</a> • <a href="wand-view.html#NewWandViewExtent">NewWandViewExtent</a> • <a href="wand-view.html#SetWandViewDescription">SetWandViewDescription</a> • <a href="wand-view.html#SetWandViewIterator">SetWandViewIterator</a> • <a href="wand-view.html#TransferWandViewIterator">TransferWandViewIterator</a> • <a href="wand-view.html#UpdateWandViewIterator">UpdateWandViewIterator</a></p> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 61 | |
Cristy | e93be68 | 2015-11-26 09:07:51 -0500 | [diff] [blame] | 62 | <h2><a href="http://www.imagemagick.org/api/MagickWand/wand-view_8c.html" id="CloneWandView">CloneWandView</a></h2> |
cristy | 99513ee | 2015-06-21 00:00:03 +0000 | [diff] [blame] | 63 | |
| 64 | <p>CloneWandView() makes a copy of the specified wand view.</p> |
| 65 | |
| 66 | <p>The format of the CloneWandView method is:</p> |
| 67 | |
| 68 | <pre class="text"> |
| 69 | WandView *CloneWandView(const WandView *wand_view) |
| 70 | </pre> |
| 71 | |
| 72 | <p>A description of each parameter follows:</p> |
| 73 | |
| 74 | <dd> |
| 75 | </dd> |
| 76 | |
| 77 | <dd> </dd> |
| 78 | <dl class="dl-horizontal"> |
| 79 | <dt>wand_view</dt> |
| 80 | <dd>the wand view. </dd> |
| 81 | |
| 82 | <dd> </dd> |
| 83 | </dl> |
Cristy | e93be68 | 2015-11-26 09:07:51 -0500 | [diff] [blame] | 84 | <h2><a href="http://www.imagemagick.org/api/MagickWand/wand-view_8c.html" id="DestroyWandView">DestroyWandView</a></h2> |
cristy | 99513ee | 2015-06-21 00:00:03 +0000 | [diff] [blame] | 85 | |
| 86 | <p>DestroyWandView() deallocates memory associated with a wand view.</p> |
| 87 | |
| 88 | <p>The format of the DestroyWandView method is:</p> |
| 89 | |
| 90 | <pre class="text"> |
| 91 | WandView *DestroyWandView(WandView *wand_view) |
| 92 | </pre> |
| 93 | |
| 94 | <p>A description of each parameter follows:</p> |
| 95 | |
| 96 | <dd> |
| 97 | </dd> |
| 98 | |
| 99 | <dd> </dd> |
| 100 | <dl class="dl-horizontal"> |
| 101 | <dt>wand_view</dt> |
| 102 | <dd>the wand view. </dd> |
| 103 | |
| 104 | <dd> </dd> |
| 105 | </dl> |
Cristy | e93be68 | 2015-11-26 09:07:51 -0500 | [diff] [blame] | 106 | <h2><a href="http://www.imagemagick.org/api/MagickWand/wand-view_8c.html" id="DuplexTransferWandViewIterator">DuplexTransferWandViewIterator</a></h2> |
cristy | 99513ee | 2015-06-21 00:00:03 +0000 | [diff] [blame] | 107 | |
| 108 | <p>DuplexTransferWandViewIterator() iterates over three wand views in parallel and calls your transfer method for each scanline of the view. The source and duplex pixel extent 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 wand view is confined to the image canvas-- that is no negative offsets or widths or heights that exceed the image dimension are permitted.</p> |
| 109 | |
| 110 | <p>The callback signature is:</p> |
| 111 | |
| 112 | <pre class="text"> |
| 113 | MagickBooleanType DuplexTransferImageViewMethod(const WandView *source, |
| 114 | const WandView *duplex,WandView *destination,const ssize_t y, |
| 115 | const int thread_id,void *context) |
| 116 | </pre> |
| 117 | |
| 118 | <p>Use this pragma if the view is not single threaded:</p> |
| 119 | |
| 120 | <pre class="text"> |
| 121 | #pragma omp critical |
| 122 | </pre> |
| 123 | |
| 124 | <p>to define a section of code in your callback transfer method that must be executed by a single thread at a time.</p> |
| 125 | |
| 126 | <p>The format of the DuplexTransferWandViewIterator method is:</p> |
| 127 | |
| 128 | <pre class="text"> |
| 129 | MagickBooleanType DuplexTransferWandViewIterator(WandView *source, |
| 130 | WandView *duplex,WandView *destination, |
| 131 | DuplexTransferWandViewMethod transfer,void *context) |
| 132 | </pre> |
| 133 | |
| 134 | <p>A description of each parameter follows:</p> |
| 135 | |
| 136 | <dd> |
| 137 | </dd> |
| 138 | |
| 139 | <dd> </dd> |
| 140 | <dl class="dl-horizontal"> |
| 141 | <dt>source</dt> |
| 142 | <dd>the source wand view. </dd> |
| 143 | |
| 144 | <dd> </dd> |
| 145 | <dt>duplex</dt> |
| 146 | <dd>the duplex wand view. </dd> |
| 147 | |
| 148 | <dd> </dd> |
| 149 | <dt>destination</dt> |
| 150 | <dd>the destination wand view. </dd> |
| 151 | |
| 152 | <dd> </dd> |
| 153 | <dt>transfer</dt> |
| 154 | <dd>the transfer callback method. </dd> |
| 155 | |
| 156 | <dd> </dd> |
| 157 | <dt>context</dt> |
| 158 | <dd>the user defined context. </dd> |
| 159 | |
| 160 | <dd> </dd> |
| 161 | </dl> |
Cristy | e93be68 | 2015-11-26 09:07:51 -0500 | [diff] [blame] | 162 | <h2><a href="http://www.imagemagick.org/api/MagickWand/wand-view_8c.html" id="GetWandViewException">GetWandViewException</a></h2> |
cristy | 99513ee | 2015-06-21 00:00:03 +0000 | [diff] [blame] | 163 | |
| 164 | <p>GetWandViewException() returns the severity, reason, and description of any error that occurs when utilizing a wand view.</p> |
| 165 | |
| 166 | <p>The format of the GetWandViewException method is:</p> |
| 167 | |
| 168 | <pre class="text"> |
| 169 | char *GetWandViewException(const WandView *wand_view, |
| 170 | ExceptionType *severity) |
| 171 | </pre> |
| 172 | |
| 173 | <p>A description of each parameter follows:</p> |
| 174 | |
| 175 | <dd> |
| 176 | </dd> |
| 177 | |
| 178 | <dd> </dd> |
| 179 | <dl class="dl-horizontal"> |
| 180 | <dt>wand_view</dt> |
| 181 | <dd>the pixel wand_view. </dd> |
| 182 | |
| 183 | <dd> </dd> |
| 184 | <dt>severity</dt> |
| 185 | <dd>the severity of the error is returned here. </dd> |
| 186 | |
| 187 | <dd> </dd> |
| 188 | </dl> |
Cristy | e93be68 | 2015-11-26 09:07:51 -0500 | [diff] [blame] | 189 | <h2><a href="http://www.imagemagick.org/api/MagickWand/wand-view_8c.html" id="GetWandViewExtent">GetWandViewExtent</a></h2> |
cristy | 99513ee | 2015-06-21 00:00:03 +0000 | [diff] [blame] | 190 | |
| 191 | <p>GetWandViewExtent() returns the wand view extent.</p> |
| 192 | |
| 193 | <p>The format of the GetWandViewExtent method is:</p> |
| 194 | |
| 195 | <pre class="text"> |
| 196 | RectangleInfo GetWandViewExtent(const WandView *wand_view) |
| 197 | </pre> |
| 198 | |
| 199 | <p>A description of each parameter follows:</p> |
| 200 | |
| 201 | <dd> |
| 202 | </dd> |
| 203 | |
| 204 | <dd> </dd> |
| 205 | <dl class="dl-horizontal"> |
| 206 | <dt>wand_view</dt> |
| 207 | <dd>the wand view. </dd> |
| 208 | |
| 209 | <dd> </dd> |
| 210 | </dl> |
Cristy | e93be68 | 2015-11-26 09:07:51 -0500 | [diff] [blame] | 211 | <h2><a href="http://www.imagemagick.org/api/MagickWand/wand-view_8c.html" id="GetWandViewIterator">GetWandViewIterator</a></h2> |
cristy | 99513ee | 2015-06-21 00:00:03 +0000 | [diff] [blame] | 212 | |
| 213 | <p>GetWandViewIterator() iterates over the wand view in parallel and calls your get method for each scanline of the view. The pixel extent 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> |
| 214 | |
| 215 | <p>The callback signature is:</p> |
| 216 | |
| 217 | <pre class="text"> |
| 218 | MagickBooleanType GetImageViewMethod(const WandView *source, |
| 219 | const ssize_t y,const int thread_id,void *context) |
| 220 | </pre> |
| 221 | |
| 222 | <p>Use this pragma if the view is not single threaded:</p> |
| 223 | |
| 224 | <pre class="text"> |
| 225 | #pragma omp critical |
| 226 | </pre> |
| 227 | |
| 228 | <p>to define a section of code in your callback get method that must be executed by a single thread at a time.</p> |
| 229 | |
| 230 | <p>The format of the GetWandViewIterator method is:</p> |
| 231 | |
| 232 | <pre class="text"> |
| 233 | MagickBooleanType GetWandViewIterator(WandView *source, |
| 234 | GetWandViewMethod get,void *context) |
| 235 | </pre> |
| 236 | |
| 237 | <p>A description of each parameter follows:</p> |
| 238 | |
| 239 | <dd> |
| 240 | </dd> |
| 241 | |
| 242 | <dd> </dd> |
| 243 | <dl class="dl-horizontal"> |
| 244 | <dt>source</dt> |
| 245 | <dd>the source wand view. </dd> |
| 246 | |
| 247 | <dd> </dd> |
| 248 | <dt>get</dt> |
| 249 | <dd>the get callback method. </dd> |
| 250 | |
| 251 | <dd> </dd> |
| 252 | <dt>context</dt> |
| 253 | <dd>the user defined context. </dd> |
| 254 | |
| 255 | <dd> </dd> |
| 256 | </dl> |
Cristy | e93be68 | 2015-11-26 09:07:51 -0500 | [diff] [blame] | 257 | <h2><a href="http://www.imagemagick.org/api/MagickWand/wand-view_8c.html" id="GetWandViewPixels">GetWandViewPixels</a></h2> |
cristy | 99513ee | 2015-06-21 00:00:03 +0000 | [diff] [blame] | 258 | |
| 259 | <p>GetWandViewPixels() returns the wand view pixel_wands.</p> |
| 260 | |
| 261 | <p>The format of the GetWandViewPixels method is:</p> |
| 262 | |
| 263 | <pre class="text"> |
| 264 | PixelWand *GetWandViewPixels(const WandView *wand_view) |
| 265 | </pre> |
| 266 | |
| 267 | <p>A description of each parameter follows:</p> |
| 268 | |
| 269 | <dd> |
| 270 | </dd> |
| 271 | |
| 272 | <dd> </dd> |
| 273 | <dl class="dl-horizontal"> |
| 274 | <dt>wand_view</dt> |
| 275 | <dd>the wand view. </dd> |
| 276 | |
| 277 | <dd> </dd> |
| 278 | </dl> |
Cristy | e93be68 | 2015-11-26 09:07:51 -0500 | [diff] [blame] | 279 | <h2><a href="http://www.imagemagick.org/api/MagickWand/wand-view_8c.html" id="GetWandViewWand">GetWandViewWand</a></h2> |
cristy | 99513ee | 2015-06-21 00:00:03 +0000 | [diff] [blame] | 280 | |
| 281 | <p>GetWandViewWand() returns the magick wand associated with the wand view.</p> |
| 282 | |
| 283 | <p>The format of the GetWandViewWand method is:</p> |
| 284 | |
| 285 | <pre class="text"> |
| 286 | MagickWand *GetWandViewWand(const WandView *wand_view) |
| 287 | </pre> |
| 288 | |
| 289 | <p>A description of each parameter follows:</p> |
| 290 | |
| 291 | <dd> |
| 292 | </dd> |
| 293 | |
| 294 | <dd> </dd> |
| 295 | <dl class="dl-horizontal"> |
| 296 | <dt>wand_view</dt> |
| 297 | <dd>the wand view. </dd> |
| 298 | |
| 299 | <dd> </dd> |
| 300 | </dl> |
Cristy | e93be68 | 2015-11-26 09:07:51 -0500 | [diff] [blame] | 301 | <h2><a href="http://www.imagemagick.org/api/MagickWand/wand-view_8c.html" id="IsWandView">IsWandView</a></h2> |
cristy | 99513ee | 2015-06-21 00:00:03 +0000 | [diff] [blame] | 302 | |
| 303 | <p>IsWandView() returns MagickTrue if the the parameter is verified as a wand view object.</p> |
| 304 | |
| 305 | <p>The format of the IsWandView method is:</p> |
| 306 | |
| 307 | <pre class="text"> |
| 308 | MagickBooleanType IsWandView(const WandView *wand_view) |
| 309 | </pre> |
| 310 | |
| 311 | <p>A description of each parameter follows:</p> |
| 312 | |
| 313 | <dd> |
| 314 | </dd> |
| 315 | |
| 316 | <dd> </dd> |
| 317 | <dl class="dl-horizontal"> |
| 318 | <dt>wand_view</dt> |
| 319 | <dd>the wand view. </dd> |
| 320 | |
| 321 | <dd> </dd> |
| 322 | </dl> |
Cristy | e93be68 | 2015-11-26 09:07:51 -0500 | [diff] [blame] | 323 | <h2><a href="http://www.imagemagick.org/api/MagickWand/wand-view_8c.html" id="NewWandView">NewWandView</a></h2> |
cristy | 99513ee | 2015-06-21 00:00:03 +0000 | [diff] [blame] | 324 | |
| 325 | <p>NewWandView() returns a wand view required for all other methods in the Wand View API.</p> |
| 326 | |
| 327 | <p>The format of the NewWandView method is:</p> |
| 328 | |
| 329 | <pre class="text"> |
| 330 | WandView *NewWandView(MagickWand *wand) |
| 331 | </pre> |
| 332 | |
| 333 | <p>A description of each parameter follows:</p> |
| 334 | |
| 335 | <dd> |
| 336 | </dd> |
| 337 | |
| 338 | <dd> </dd> |
| 339 | <dl class="dl-horizontal"> |
| 340 | <dt>wand</dt> |
| 341 | <dd>the wand. </dd> |
| 342 | |
| 343 | <dd> </dd> |
| 344 | </dl> |
Cristy | e93be68 | 2015-11-26 09:07:51 -0500 | [diff] [blame] | 345 | <h2><a href="http://www.imagemagick.org/api/MagickWand/wand-view_8c.html" id="NewWandViewExtent">NewWandViewExtent</a></h2> |
cristy | 99513ee | 2015-06-21 00:00:03 +0000 | [diff] [blame] | 346 | |
| 347 | <p>NewWandViewExtent() returns a wand view required for all other methods in the Wand View API.</p> |
| 348 | |
| 349 | <p>The format of the NewWandViewExtent method is:</p> |
| 350 | |
| 351 | <pre class="text"> |
| 352 | WandView *NewWandViewExtent(MagickWand *wand,const ssize_t x, |
| 353 | const ssize_t y,const size_t width,const size_t height) |
| 354 | </pre> |
| 355 | |
| 356 | <p>A description of each parameter follows:</p> |
| 357 | |
| 358 | <dd> |
| 359 | </dd> |
| 360 | |
| 361 | <dd> </dd> |
| 362 | <dl class="dl-horizontal"> |
| 363 | <dt>wand</dt> |
| 364 | <dd>the magick wand. </dd> |
| 365 | |
| 366 | <dd> </dd> |
| 367 | <dt>x,y,columns,rows</dt> |
| 368 | <dd> These values define the perimeter of a extent of pixel_wands view. </dd> |
| 369 | |
| 370 | <dd> </dd> |
| 371 | </dl> |
Cristy | e93be68 | 2015-11-26 09:07:51 -0500 | [diff] [blame] | 372 | <h2><a href="http://www.imagemagick.org/api/MagickWand/wand-view_8c.html" id="SetWandViewDescription">SetWandViewDescription</a></h2> |
cristy | 99513ee | 2015-06-21 00:00:03 +0000 | [diff] [blame] | 373 | |
| 374 | <p>SetWandViewDescription() associates a description with an image view.</p> |
| 375 | |
| 376 | <p>The format of the SetWandViewDescription method is:</p> |
| 377 | |
| 378 | <pre class="text"> |
| 379 | void SetWandViewDescription(WandView *image_view,const char *description) |
| 380 | </pre> |
| 381 | |
| 382 | <p>A description of each parameter follows:</p> |
| 383 | |
| 384 | <dd> |
| 385 | </dd> |
| 386 | |
| 387 | <dd> </dd> |
| 388 | <dl class="dl-horizontal"> |
| 389 | <dt>wand_view</dt> |
| 390 | <dd>the wand view. </dd> |
| 391 | |
| 392 | <dd> </dd> |
| 393 | <dt>description</dt> |
| 394 | <dd>the wand view description. </dd> |
| 395 | |
| 396 | <dd> </dd> |
| 397 | </dl> |
Cristy | e93be68 | 2015-11-26 09:07:51 -0500 | [diff] [blame] | 398 | <h2><a href="http://www.imagemagick.org/api/MagickWand/wand-view_8c.html" id="SetWandViewIterator">SetWandViewIterator</a></h2> |
cristy | 99513ee | 2015-06-21 00:00:03 +0000 | [diff] [blame] | 399 | |
| 400 | <p>SetWandViewIterator() iterates over the wand view in parallel and calls your set method for each scanline of the view. The pixel extent 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> |
| 401 | |
| 402 | <p>The callback signature is:</p> |
| 403 | |
| 404 | <pre class="text"> |
| 405 | MagickBooleanType SetImageViewMethod(ImageView *destination, |
| 406 | const ssize_t y,const int thread_id,void *context) |
| 407 | </pre> |
| 408 | |
| 409 | <p>Use this pragma if the view is not single threaded:</p> |
| 410 | |
| 411 | <pre class="text"> |
| 412 | #pragma omp critical |
| 413 | </pre> |
| 414 | |
| 415 | <p>to define a section of code in your callback set method that must be executed by a single thread at a time.</p> |
| 416 | |
| 417 | <p>The format of the SetWandViewIterator method is:</p> |
| 418 | |
| 419 | <pre class="text"> |
| 420 | MagickBooleanType SetWandViewIterator(WandView *destination, |
| 421 | SetWandViewMethod set,void *context) |
| 422 | </pre> |
| 423 | |
| 424 | <p>A description of each parameter follows:</p> |
| 425 | |
| 426 | <dd> |
| 427 | </dd> |
| 428 | |
| 429 | <dd> </dd> |
| 430 | <dl class="dl-horizontal"> |
| 431 | <dt>destination</dt> |
| 432 | <dd>the wand view. </dd> |
| 433 | |
| 434 | <dd> </dd> |
| 435 | <dt>set</dt> |
| 436 | <dd>the set callback method. </dd> |
| 437 | |
| 438 | <dd> </dd> |
| 439 | <dt>context</dt> |
| 440 | <dd>the user defined context. </dd> |
| 441 | |
| 442 | <dd> </dd> |
| 443 | </dl> |
Cristy | e93be68 | 2015-11-26 09:07:51 -0500 | [diff] [blame] | 444 | <h2><a href="http://www.imagemagick.org/api/MagickWand/wand-view_8c.html" id="TransferWandViewIterator">TransferWandViewIterator</a></h2> |
cristy | 99513ee | 2015-06-21 00:00:03 +0000 | [diff] [blame] | 445 | |
| 446 | <p>TransferWandViewIterator() iterates over two wand views in parallel and calls your transfer method for each scanline of the view. The source pixel extent 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 wand view is confined to the image canvas-- that is no negative offsets or widths or heights that exceed the image dimension are permitted.</p> |
| 447 | |
| 448 | <p>The callback signature is:</p> |
| 449 | |
| 450 | <pre class="text"> |
| 451 | MagickBooleanType TransferImageViewMethod(const WandView *source, |
| 452 | WandView *destination,const ssize_t y,const int thread_id, |
| 453 | void *context) |
| 454 | </pre> |
| 455 | |
| 456 | <p>Use this pragma if the view is not single threaded:</p> |
| 457 | |
| 458 | <pre class="text"> |
| 459 | #pragma omp critical |
| 460 | </pre> |
| 461 | |
| 462 | <p>to define a section of code in your callback transfer method that must be executed by a single thread at a time.</p> |
| 463 | |
| 464 | <p>The format of the TransferWandViewIterator method is:</p> |
| 465 | |
| 466 | <pre class="text"> |
| 467 | MagickBooleanType TransferWandViewIterator(WandView *source, |
| 468 | WandView *destination,TransferWandViewMethod transfer,void *context) |
| 469 | </pre> |
| 470 | |
| 471 | <p>A description of each parameter follows:</p> |
| 472 | |
| 473 | <dd> |
| 474 | </dd> |
| 475 | |
| 476 | <dd> </dd> |
| 477 | <dl class="dl-horizontal"> |
| 478 | <dt>source</dt> |
| 479 | <dd>the source wand view. </dd> |
| 480 | |
| 481 | <dd> </dd> |
| 482 | <dt>destination</dt> |
| 483 | <dd>the destination wand view. </dd> |
| 484 | |
| 485 | <dd> </dd> |
| 486 | <dt>transfer</dt> |
| 487 | <dd>the transfer callback method. </dd> |
| 488 | |
| 489 | <dd> </dd> |
| 490 | <dt>context</dt> |
| 491 | <dd>the user defined context. </dd> |
| 492 | |
| 493 | <dd> </dd> |
| 494 | </dl> |
Cristy | e93be68 | 2015-11-26 09:07:51 -0500 | [diff] [blame] | 495 | <h2><a href="http://www.imagemagick.org/api/MagickWand/wand-view_8c.html" id="UpdateWandViewIterator">UpdateWandViewIterator</a></h2> |
cristy | 99513ee | 2015-06-21 00:00:03 +0000 | [diff] [blame] | 496 | |
| 497 | <p>UpdateWandViewIterator() iterates over the wand view in parallel and calls your update method for each scanline of the view. The pixel extent 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> |
| 498 | |
| 499 | <p>The callback signature is:</p> |
| 500 | |
| 501 | <pre class="text"> |
| 502 | MagickBooleanType UpdateImageViewMethod(WandView *source,const ssize_t y, |
| 503 | const int thread_id,void *context) |
| 504 | </pre> |
| 505 | |
| 506 | <p>Use this pragma if the view is not single threaded:</p> |
| 507 | |
| 508 | <pre class="text"> |
| 509 | #pragma omp critical |
| 510 | </pre> |
| 511 | |
| 512 | <p>to define a section of code in your callback update method that must be executed by a single thread at a time.</p> |
| 513 | |
| 514 | <p>The format of the UpdateWandViewIterator method is:</p> |
| 515 | |
| 516 | <pre class="text"> |
| 517 | MagickBooleanType UpdateWandViewIterator(WandView *source, |
| 518 | UpdateWandViewMethod update,void *context) |
| 519 | </pre> |
| 520 | |
| 521 | <p>A description of each parameter follows:</p> |
| 522 | |
| 523 | <dd> |
| 524 | </dd> |
| 525 | |
| 526 | <dd> </dd> |
| 527 | <dl class="dl-horizontal"> |
| 528 | <dt>source</dt> |
| 529 | <dd>the source wand view. </dd> |
| 530 | |
| 531 | <dd> </dd> |
| 532 | <dt>update</dt> |
| 533 | <dd>the update callback method. </dd> |
| 534 | |
| 535 | <dd> </dd> |
| 536 | <dt>context</dt> |
| 537 | <dd>the user defined context. </dd> |
| 538 | |
| 539 | <dd> </dd> |
| 540 | </dl> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 541 | </div> |
cristy | 44443b9 | 2015-05-05 00:06:07 +0000 | [diff] [blame] | 542 | <footer class="magick-footer"> |
cristy | 29f2c97 | 2015-07-28 13:37:46 +0000 | [diff] [blame] | 543 | <p><a href="../support.html">Donate</a> • |
| 544 | <a href="../sitemap.html">Sitemap</a> • |
cristy | 3818536 | 2015-05-07 20:09:56 +0000 | [diff] [blame] | 545 | <a href="../links.html">Related</a> • |
Cristy | 3b0b58d | 2016-11-06 07:40:23 -0500 | [diff] [blame] | 546 | <a href="../security-policy.html">Security</a> • |
cristy | 29f2c97 | 2015-07-28 13:37:46 +0000 | [diff] [blame] | 547 | <a href="../architecture.html">Architecture</a> |
cristy | 44443b9 | 2015-05-05 00:06:07 +0000 | [diff] [blame] | 548 | </p> |
| 549 | <p><a href="wand-view.html#">Back to top</a> • |
cristy | ea2793e | 2015-05-31 16:52:26 +0000 | [diff] [blame] | 550 | <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x89AB63D48277377A">Public Key</a> • |
Cristy | 1f1f3a0 | 2016-06-01 07:25:42 -0400 | [diff] [blame] | 551 | <a href="http://www.imagemagick.org/script/contact.php">Contact Us</a></p> |
Cristy | 600583b | 2016-01-02 14:00:46 -0500 | [diff] [blame] | 552 | <p><small>© 1999-2016 ImageMagick Studio LLC</small></p> |
cristy | 44443b9 | 2015-05-05 00:06:07 +0000 | [diff] [blame] | 553 | </footer> |
| 554 | </div><!-- /.container --> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 555 | |
Cristy | e93be68 | 2015-11-26 09:07:51 -0500 | [diff] [blame] | 556 | <script src="https://localhost/ajax/libs/jquery/1.11.3/jquery.min.js"></script> |
Cristy | 1f1f3a0 | 2016-06-01 07:25:42 -0400 | [diff] [blame] | 557 | <script src="../js/magick.html"></script> |
cristy | 44cbd48 | 2013-08-04 20:53:36 +0000 | [diff] [blame] | 558 | </div> |
cristy | 06f63f2 | 2012-10-31 00:50:07 +0000 | [diff] [blame] | 559 | </body> |
cristy | 5a367e4 | 2015-05-05 12:39:18 +0000 | [diff] [blame] | 560 | </html> |