1 2 3 4 5 <!DOCTYPE html> 6 <html lang="en"> 7 <head> 8 <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" /> 9 <title>ImageMagick: MagickWand, C API for ImageMagick: Pixel Wand Methods</title> 10 <meta http-equiv="content-type" content="text/html; charset=utf-8"/> 11 <meta name="application-name" content="ImageMagick"/> 12 <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 Bzier curves."/> 13 <meta name="application-url" content="http://www.imagemagick.org"/> 14 <meta name="generator" content="PHP"/> 15 <meta name="keywords" content="magickwc, api, for, imagemagick:, pixel, wmethods, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert"/> 16 <meta name="rating" content="GENERAL"/> 17 <meta name="robots" content="INDEX, FOLLOW"/> 18 <meta name="generator" content="ImageMagick Studio LLC"/> 19 <meta name="author" content="ImageMagick Studio LLC"/> 20 <meta name="revisit-after" content="2 DAYS"/> 21 <meta name="resource-type" content="document"/> 22 <meta name="copyright" content="Copyright (c) 1999-2016 ImageMagick Studio LLC"/> 23 <meta name="distribution" content="Global"/> 24 <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1"/> 25 <link rel="icon" href="../image/wand.png"/> 26 <link rel="shortcut icon" href="../image/wand.ico"/> 27 <link rel="stylesheet" href="../css/magick.php"/> 28 </head> 29 <body> 30 <div class="main"> 31 <div class="magick-masthead"> 32 <div class="container"> 33 <script async="async" src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" 34 style="display:block" 35 data-ad-client="ca-pub-3129977114552745" 36 data-ad-slot="6345125851" 37 data-ad-format="auto"></ins> 38 <script> 39 (adsbygoogle = window.adsbygoogle || []).push({}); 40 </script> 41 <nav class="magick-nav"> 42 <a class="magick-nav-item " href="../index.php">Home</a> 43 <a class="magick-nav-item " href="../script/binary-releases.php">Download</a> 44 <a class="magick-nav-item " href="../script/command-line-tools.php">Tools</a> 45 <a class="magick-nav-item " href="../script/command-line-options.php">Options</a> 46 <a class="magick-nav-item " href="../script/resources.php">Resources</a> 47 <a class="magick-nav-item " href="../script/api.php">Develop</a> 48 <a class="magick-nav-item " href="../script/search.php">Search</a> 49 <a class="magick-nav-item pull-right" href="http://www.imagemagick.org/discourse-server/">Community</a> 50 </nav> 51 </div> 52 </div> 53 <div class="container"> 54 <div class="magick-header"> 55 <p class="text-center"><a href="pixel-wand.php#ClearPixelWand">ClearPixelWand</a> • <a href="pixel-wand.php#ClonePixelWand">ClonePixelWand</a> • <a href="pixel-wand.php#ClonePixelWands">ClonePixelWands</a> • <a href="pixel-wand.php#DestroyPixelWand">DestroyPixelWand</a> • <a href="pixel-wand.php#DestroyPixelWands">DestroyPixelWands</a> • <a href="pixel-wand.php#IsPixelWandSimilar">IsPixelWandSimilar</a> • <a href="pixel-wand.php#IsPixelWand">IsPixelWand</a> • <a href="pixel-wand.php#NewPixelWand">NewPixelWand</a> • <a href="pixel-wand.php#NewPixelWands">NewPixelWands</a> • <a href="pixel-wand.php#PixelClearException">PixelClearException</a> • <a href="pixel-wand.php#PixelGetAlpha">PixelGetAlpha</a> • <a href="pixel-wand.php#PixelGetAlphaQuantum">PixelGetAlphaQuantum</a> • <a href="pixel-wand.php#PixelGetBlack">PixelGetBlack</a> • <a href="pixel-wand.php#PixelGetBlackQuantum">PixelGetBlackQuantum</a> • <a href="pixel-wand.php#PixelGetBlue">PixelGetBlue</a> • <a href="pixel-wand.php#PixelGetBlueQuantum">PixelGetBlueQuantum</a> • <a href="pixel-wand.php#PixelGetColorAsString">PixelGetColorAsString</a> • <a href="pixel-wand.php#PixelGetColorAsNormalizedString">PixelGetColorAsNormalizedString</a> • <a href="pixel-wand.php#PixelGetColorCount">PixelGetColorCount</a> • <a href="pixel-wand.php#PixelGetCyan">PixelGetCyan</a> • <a href="pixel-wand.php#PixelGetCyanQuantum">PixelGetCyanQuantum</a> • <a href="pixel-wand.php#PixelGetException">PixelGetException</a> • <a href="pixel-wand.php#PixelGetExceptionType">PixelGetExceptionType</a> • <a href="pixel-wand.php#PixelGetFuzz">PixelGetFuzz</a> • <a href="pixel-wand.php#PixelGetGreen">PixelGetGreen</a> • <a href="pixel-wand.php#PixelGetGreenQuantum">PixelGetGreenQuantum</a> • <a href="pixel-wand.php#PixelGetHSL">PixelGetHSL</a> • <a href="pixel-wand.php#PixelGetIndex">PixelGetIndex</a> • <a href="pixel-wand.php#PixelGetMagenta">PixelGetMagenta</a> • <a href="pixel-wand.php#PixelGetMagentaQuantum">PixelGetMagentaQuantum</a> • <a href="pixel-wand.php#PixelGetMagickColor">PixelGetMagickColor</a> • <a href="pixel-wand.php#PixelGetPixel">PixelGetPixel</a> • <a href="pixel-wand.php#PixelGetQuantumPacket">PixelGetQuantumPacket</a> • <a href="pixel-wand.php#PixelGetQuantumPixel">PixelGetQuantumPixel</a> • <a href="pixel-wand.php#PixelGetRed">PixelGetRed</a> • <a href="pixel-wand.php#PixelGetRedQuantum">PixelGetRedQuantum</a> • <a href="pixel-wand.php#PixelGetYellow">PixelGetYellow</a> • <a href="pixel-wand.php#PixelGetYellowQuantum">PixelGetYellowQuantum</a> • <a href="pixel-wand.php#PixelSetAlpha">PixelSetAlpha</a> • <a href="pixel-wand.php#PixelSetAlphaQuantum">PixelSetAlphaQuantum</a> • <a href="pixel-wand.php#PixelSetBlack">PixelSetBlack</a> • <a href="pixel-wand.php#PixelSetBlackQuantum">PixelSetBlackQuantum</a> • <a href="pixel-wand.php#PixelSetBlue">PixelSetBlue</a> • <a href="pixel-wand.php#PixelSetBlueQuantum">PixelSetBlueQuantum</a> • <a href="pixel-wand.php#PixelSetColor">PixelSetColor</a> • <a href="pixel-wand.php#PixelSetColorCount">PixelSetColorCount</a> • <a href="pixel-wand.php#PixelSetColorFromWand">PixelSetColorFromWand</a> • <a href="pixel-wand.php#PixelSetCyan">PixelSetCyan</a> • <a href="pixel-wand.php#PixelSetCyanQuantum">PixelSetCyanQuantum</a> • <a href="pixel-wand.php#PixelSetFuzz">PixelSetFuzz</a> • <a href="pixel-wand.php#PixelSetGreen">PixelSetGreen</a> • <a href="pixel-wand.php#PixelSetGreenQuantum">PixelSetGreenQuantum</a> • <a href="pixel-wand.php#PixelSetHSL">PixelSetHSL</a> • <a href="pixel-wand.php#PixelSetIndex">PixelSetIndex</a> • <a href="pixel-wand.php#PixelSetMagenta">PixelSetMagenta</a> • <a href="pixel-wand.php#PixelSetMagentaQuantum">PixelSetMagentaQuantum</a> • <a href="pixel-wand.php#PixelSetPixelColor">PixelSetPixelColor</a> • <a href="pixel-wand.php#PixelSetQuantumPixel">PixelSetQuantumPixel</a> • <a href="pixel-wand.php#PixelSetRed">PixelSetRed</a> • <a href="pixel-wand.php#PixelSetRedQuantum">PixelSetRedQuantum</a> • <a href="pixel-wand.php#PixelSetYellow">PixelSetYellow</a> • <a href="pixel-wand.php#PixelSetYellowQuantum">PixelSetYellowQuantum</a></p> 56 57 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="ClearPixelWand">ClearPixelWand</a></h2> 58 59 <p>ClearPixelWand() clears resources associated with the wand.</p> 60 61 <p>The format of the ClearPixelWand method is:</p> 62 63 <pre class="text"> 64 void ClearPixelWand(PixelWand *wand) 65 </pre> 66 67 <p>A description of each parameter follows:</p> 68 69 <dd> 70 </dd> 71 72 <dd> </dd> 73 <dl class="dl-horizontal"> 74 <dt>wand</dt> 75 <dd>the pixel wand. </dd> 76 77 <dd> </dd> 78 </dl> 79 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="ClonePixelWand">ClonePixelWand</a></h2> 80 81 <p>ClonePixelWand() makes an exact copy of the specified wand.</p> 82 83 <p>The format of the ClonePixelWand method is:</p> 84 85 <pre class="text"> 86 PixelWand *ClonePixelWand(const PixelWand *wand) 87 </pre> 88 89 <p>A description of each parameter follows:</p> 90 91 <dd> 92 </dd> 93 94 <dd> </dd> 95 <dl class="dl-horizontal"> 96 <dt>wand</dt> 97 <dd>the magick wand. </dd> 98 99 <dd> </dd> 100 </dl> 101 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="ClonePixelWands">ClonePixelWands</a></h2> 102 103 <p>ClonePixelWands() makes an exact copy of the specified wands.</p> 104 105 <p>The format of the ClonePixelWands method is:</p> 106 107 <pre class="text"> 108 PixelWand **ClonePixelWands(const PixelWand **wands, 109 const size_t number_wands) 110 </pre> 111 112 <p>A description of each parameter follows:</p> 113 114 <dd> 115 </dd> 116 117 <dd> </dd> 118 <dl class="dl-horizontal"> 119 <dt>wands</dt> 120 <dd>the magick wands. </dd> 121 122 <dd> </dd> 123 <dt>number_wands</dt> 124 <dd>the number of wands. </dd> 125 126 <dd> </dd> 127 </dl> 128 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="DestroyPixelWand">DestroyPixelWand</a></h2> 129 130 <p>DestroyPixelWand() deallocates resources associated with a PixelWand.</p> 131 132 <p>The format of the DestroyPixelWand method is:</p> 133 134 <pre class="text"> 135 PixelWand *DestroyPixelWand(PixelWand *wand) 136 </pre> 137 138 <p>A description of each parameter follows:</p> 139 140 <dd> 141 </dd> 142 143 <dd> </dd> 144 <dl class="dl-horizontal"> 145 <dt>wand</dt> 146 <dd>the pixel wand. </dd> 147 148 <dd> </dd> 149 </dl> 150 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="DestroyPixelWands">DestroyPixelWands</a></h2> 151 152 <p>DestroyPixelWands() deallocates resources associated with an array of pixel wands.</p> 153 154 <p>The format of the DestroyPixelWands method is:</p> 155 156 <pre class="text"> 157 PixelWand **DestroyPixelWands(PixelWand **wand, 158 const size_t number_wands) 159 </pre> 160 161 <p>A description of each parameter follows:</p> 162 163 <dd> 164 </dd> 165 166 <dd> </dd> 167 <dl class="dl-horizontal"> 168 <dt>wand</dt> 169 <dd>the pixel wand. </dd> 170 171 <dd> </dd> 172 <dt>number_wands</dt> 173 <dd>the number of wands. </dd> 174 175 <dd> </dd> 176 </dl> 177 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="IsPixelWandSimilar">IsPixelWandSimilar</a></h2> 178 179 <p>IsPixelWandSimilar() returns MagickTrue if the distance between two colors is less than the specified distance.</p> 180 181 <p>The format of the IsPixelWandSimilar method is:</p> 182 183 <pre class="text"> 184 MagickBooleanType IsPixelWandSimilar(PixelWand *p,PixelWand *q, 185 const double fuzz) 186 </pre> 187 188 <p>A description of each parameter follows:</p> 189 190 <dd> 191 </dd> 192 193 <dd> </dd> 194 <dl class="dl-horizontal"> 195 <dt>p</dt> 196 <dd>the pixel wand. </dd> 197 198 <dd> </dd> 199 <dt>q</dt> 200 <dd>the pixel wand. </dd> 201 202 <dd> </dd> 203 <dt>fuzz</dt> 204 <dd>any two colors that are less than or equal to this distance squared are consider similar. </dd> 205 206 <dd> </dd> 207 </dl> 208 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="IsPixelWand">IsPixelWand</a></h2> 209 210 <p>IsPixelWand() returns MagickTrue if the wand is verified as a pixel wand.</p> 211 212 <p>The format of the IsPixelWand method is:</p> 213 214 <pre class="text"> 215 MagickBooleanType IsPixelWand(const PixelWand *wand) 216 </pre> 217 218 <p>A description of each parameter follows:</p> 219 220 <dd> 221 </dd> 222 223 <dd> </dd> 224 <dl class="dl-horizontal"> 225 <dt>wand</dt> 226 <dd>the magick wand. </dd> 227 228 <dd> </dd> 229 </dl> 230 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="NewPixelWand">NewPixelWand</a></h2> 231 232 <p>NewPixelWand() returns a new pixel wand.</p> 233 234 <p>The format of the NewPixelWand method is:</p> 235 236 <pre class="text"> 237 PixelWand *NewPixelWand(void) 238 </pre> 239 240 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="NewPixelWands">NewPixelWands</a></h2> 241 242 <p>NewPixelWands() returns an array of pixel wands.</p> 243 244 <p>The format of the NewPixelWands method is:</p> 245 246 <pre class="text"> 247 PixelWand **NewPixelWands(const size_t number_wands) 248 </pre> 249 250 <p>A description of each parameter follows:</p> 251 252 <dd> 253 </dd> 254 255 <dd> </dd> 256 <dl class="dl-horizontal"> 257 <dt>number_wands</dt> 258 <dd>the number of wands. </dd> 259 260 <dd> </dd> 261 </dl> 262 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelClearException">PixelClearException</a></h2> 263 264 <p>PixelClearException() clear any exceptions associated with the iterator.</p> 265 266 <p>The format of the PixelClearException method is:</p> 267 268 <pre class="text"> 269 MagickBooleanType PixelClearException(PixelWand *wand) 270 </pre> 271 272 <p>A description of each parameter follows:</p> 273 274 <dd> 275 </dd> 276 277 <dd> </dd> 278 <dl class="dl-horizontal"> 279 <dt>wand</dt> 280 <dd>the pixel wand. </dd> 281 282 <dd> </dd> 283 </dl> 284 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetAlpha">PixelGetAlpha</a></h2> 285 286 <p>PixelGetAlpha() returns the normalized alpha value of the pixel wand.</p> 287 288 <p>The format of the PixelGetAlpha method is:</p> 289 290 <pre class="text"> 291 double PixelGetAlpha(const PixelWand *wand) 292 </pre> 293 294 <p>A description of each parameter follows:</p> 295 296 <dd> 297 </dd> 298 299 <dd> </dd> 300 <dl class="dl-horizontal"> 301 <dt>wand</dt> 302 <dd>the pixel wand. </dd> 303 304 <dd> </dd> 305 </dl> 306 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetAlphaQuantum">PixelGetAlphaQuantum</a></h2> 307 308 <p>PixelGetAlphaQuantum() returns the alpha value of the pixel wand.</p> 309 310 <p>The format of the PixelGetAlphaQuantum method is:</p> 311 312 <pre class="text"> 313 Quantum PixelGetAlphaQuantum(const PixelWand *wand) 314 </pre> 315 316 <p>A description of each parameter follows:</p> 317 318 <dd> 319 </dd> 320 321 <dd> </dd> 322 <dl class="dl-horizontal"> 323 <dt>wand</dt> 324 <dd>the pixel wand. </dd> 325 326 <dd> </dd> 327 </dl> 328 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetBlack">PixelGetBlack</a></h2> 329 330 <p>PixelGetBlack() returns the normalized black color of the pixel wand.</p> 331 332 <p>The format of the PixelGetBlack method is:</p> 333 334 <pre class="text"> 335 double PixelGetBlack(const PixelWand *wand) 336 </pre> 337 338 <p>A description of each parameter follows:</p> 339 340 <dd> 341 </dd> 342 343 <dd> </dd> 344 <dl class="dl-horizontal"> 345 <dt>wand</dt> 346 <dd>the pixel wand. </dd> 347 348 <dd> </dd> 349 </dl> 350 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetBlackQuantum">PixelGetBlackQuantum</a></h2> 351 352 <p>PixelGetBlackQuantum() returns the black color of the pixel wand.</p> 353 354 <p>The format of the PixelGetBlackQuantum method is:</p> 355 356 <pre class="text"> 357 Quantum PixelGetBlackQuantum(const PixelWand *wand) 358 </pre> 359 360 <p>A description of each parameter follows:</p> 361 362 <dd> 363 </dd> 364 365 <dd> </dd> 366 <dl class="dl-horizontal"> 367 <dt>wand</dt> 368 <dd>the pixel wand. </dd> 369 370 <dd> </dd> 371 </dl> 372 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetBlue">PixelGetBlue</a></h2> 373 374 <p>PixelGetBlue() returns the normalized blue color of the pixel wand.</p> 375 376 <p>The format of the PixelGetBlue method is:</p> 377 378 <pre class="text"> 379 double PixelGetBlue(const PixelWand *wand) 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</dt> 390 <dd>the pixel wand. </dd> 391 392 <dd> </dd> 393 </dl> 394 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetBlueQuantum">PixelGetBlueQuantum</a></h2> 395 396 <p>PixelGetBlueQuantum() returns the blue color of the pixel wand.</p> 397 398 <p>The format of the PixelGetBlueQuantum method is:</p> 399 400 <pre class="text"> 401 Quantum PixelGetBlueQuantum(const PixelWand *wand) 402 </pre> 403 404 <p>A description of each parameter follows:</p> 405 406 <dd> 407 </dd> 408 409 <dd> </dd> 410 <dl class="dl-horizontal"> 411 <dt>wand</dt> 412 <dd>the pixel wand. </dd> 413 414 <dd> </dd> 415 </dl> 416 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetColorAsString">PixelGetColorAsString</a></h2> 417 418 <p>PixelGetColorAsString() returnsd the color of the pixel wand as a string.</p> 419 420 <p>The format of the PixelGetColorAsString method is:</p> 421 422 <pre class="text"> 423 char *PixelGetColorAsString(PixelWand *wand) 424 </pre> 425 426 <p>A description of each parameter follows:</p> 427 428 <dd> 429 </dd> 430 431 <dd> </dd> 432 <dl class="dl-horizontal"> 433 <dt>wand</dt> 434 <dd>the pixel wand. </dd> 435 436 <dd> </dd> 437 </dl> 438 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetColorAsNormalizedString">PixelGetColorAsNormalizedString</a></h2> 439 440 <p>PixelGetColorAsNormalizedString() returns the normalized color of the pixel wand as a string.</p> 441 442 <p>The format of the PixelGetColorAsNormalizedString method is:</p> 443 444 <pre class="text"> 445 char *PixelGetColorAsNormalizedString(PixelWand *wand) 446 </pre> 447 448 <p>A description of each parameter follows:</p> 449 450 <dd> 451 </dd> 452 453 <dd> </dd> 454 <dl class="dl-horizontal"> 455 <dt>wand</dt> 456 <dd>the pixel wand. </dd> 457 458 <dd> </dd> 459 </dl> 460 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetColorCount">PixelGetColorCount</a></h2> 461 462 <p>PixelGetColorCount() returns the color count associated with this color.</p> 463 464 <p>The format of the PixelGetColorCount method is:</p> 465 466 <pre class="text"> 467 size_t PixelGetColorCount(const PixelWand *wand) 468 </pre> 469 470 <p>A description of each parameter follows:</p> 471 472 <dd> 473 </dd> 474 475 <dd> </dd> 476 <dl class="dl-horizontal"> 477 <dt>wand</dt> 478 <dd>the pixel wand. </dd> 479 480 <dd> </dd> 481 </dl> 482 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetCyan">PixelGetCyan</a></h2> 483 484 <p>PixelGetCyan() returns the normalized cyan color of the pixel wand.</p> 485 486 <p>The format of the PixelGetCyan method is:</p> 487 488 <pre class="text"> 489 double PixelGetCyan(const PixelWand *wand) 490 </pre> 491 492 <p>A description of each parameter follows:</p> 493 494 <dd> 495 </dd> 496 497 <dd> </dd> 498 <dl class="dl-horizontal"> 499 <dt>wand</dt> 500 <dd>the pixel wand. </dd> 501 502 <dd> </dd> 503 </dl> 504 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetCyanQuantum">PixelGetCyanQuantum</a></h2> 505 506 <p>PixelGetCyanQuantum() returns the cyan color of the pixel wand.</p> 507 508 <p>The format of the PixelGetCyanQuantum method is:</p> 509 510 <pre class="text"> 511 Quantum PixelGetCyanQuantum(const PixelWand *wand) 512 </pre> 513 514 <p>A description of each parameter follows:</p> 515 516 <dd> 517 </dd> 518 519 <dd> </dd> 520 <dl class="dl-horizontal"> 521 <dt>wand</dt> 522 <dd>the pixel wand. </dd> 523 524 <dd> </dd> 525 </dl> 526 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetException">PixelGetException</a></h2> 527 528 <p>PixelGetException() returns the severity, reason, and description of any error that occurs when using other methods in this API.</p> 529 530 <p>The format of the PixelGetException method is:</p> 531 532 <pre class="text"> 533 char *PixelGetException(const PixelWand *wand,ExceptionType *severity) 534 </pre> 535 536 <p>A description of each parameter follows:</p> 537 538 <dd> 539 </dd> 540 541 <dd> </dd> 542 <dl class="dl-horizontal"> 543 <dt>wand</dt> 544 <dd>the pixel wand. </dd> 545 546 <dd> </dd> 547 <dt>severity</dt> 548 <dd>the severity of the error is returned here. </dd> 549 550 <dd> </dd> 551 </dl> 552 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetExceptionType">PixelGetExceptionType</a></h2> 553 554 <p>PixelGetExceptionType() the exception type associated with the wand. If no exception has occurred, UndefinedExceptionType is returned.</p> 555 556 <p>The format of the PixelGetExceptionType method is:</p> 557 558 <pre class="text"> 559 ExceptionType PixelGetExceptionType(const PixelWand *wand) 560 </pre> 561 562 <p>A description of each parameter follows:</p> 563 564 <dd> 565 </dd> 566 567 <dd> </dd> 568 <dl class="dl-horizontal"> 569 <dt>wand</dt> 570 <dd>the magick wand. </dd> 571 572 <dd> </dd> 573 </dl> 574 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetFuzz">PixelGetFuzz</a></h2> 575 576 <p>PixelGetFuzz() returns the normalized fuzz value of the pixel wand.</p> 577 578 <p>The format of the PixelGetFuzz method is:</p> 579 580 <pre class="text"> 581 double PixelGetFuzz(const PixelWand *wand) 582 </pre> 583 584 <p>A description of each parameter follows:</p> 585 586 <dd> 587 </dd> 588 589 <dd> </dd> 590 <dl class="dl-horizontal"> 591 <dt>wand</dt> 592 <dd>the pixel wand. </dd> 593 594 <dd> </dd> 595 </dl> 596 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetGreen">PixelGetGreen</a></h2> 597 598 <p>PixelGetGreen() returns the normalized green color of the pixel wand.</p> 599 600 <p>The format of the PixelGetGreen method is:</p> 601 602 <pre class="text"> 603 double PixelGetGreen(const PixelWand *wand) 604 </pre> 605 606 <p>A description of each parameter follows:</p> 607 608 <dd> 609 </dd> 610 611 <dd> </dd> 612 <dl class="dl-horizontal"> 613 <dt>wand</dt> 614 <dd>the pixel wand. </dd> 615 616 <dd> </dd> 617 </dl> 618 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetGreenQuantum">PixelGetGreenQuantum</a></h2> 619 620 <p>PixelGetGreenQuantum() returns the green color of the pixel wand.</p> 621 622 <p>The format of the PixelGetGreenQuantum method is:</p> 623 624 <pre class="text"> 625 Quantum PixelGetGreenQuantum(const PixelWand *wand) 626 </pre> 627 628 <p>A description of each parameter follows:</p> 629 630 <dd> 631 </dd> 632 633 <dd> </dd> 634 <dl class="dl-horizontal"> 635 <dt>wand</dt> 636 <dd>the pixel wand. </dd> 637 638 <dd> </dd> 639 </dl> 640 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetHSL">PixelGetHSL</a></h2> 641 642 <p>PixelGetHSL() returns the normalized HSL color of the pixel wand.</p> 643 644 <p>The format of the PixelGetHSL method is:</p> 645 646 <pre class="text"> 647 void PixelGetHSL(const PixelWand *wand,double *hue,double *saturation, 648 double *lightness) 649 </pre> 650 651 <p>A description of each parameter follows:</p> 652 653 <dd> 654 </dd> 655 656 <dd> </dd> 657 <dl class="dl-horizontal"> 658 <dt>wand</dt> 659 <dd>the pixel wand. </dd> 660 661 <dd> </dd> 662 <dt>hue,saturation,lightness</dt> 663 <dd>Return the pixel hue, saturation, and brightness. </dd> 664 665 <dd> </dd> 666 </dl> 667 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetIndex">PixelGetIndex</a></h2> 668 669 <p>PixelGetIndex() returns the colormap index from the pixel wand.</p> 670 671 <p>The format of the PixelGetIndex method is:</p> 672 673 <pre class="text"> 674 Quantum PixelGetIndex(const PixelWand *wand) 675 </pre> 676 677 <p>A description of each parameter follows:</p> 678 679 <dd> 680 </dd> 681 682 <dd> </dd> 683 <dl class="dl-horizontal"> 684 <dt>wand</dt> 685 <dd>the pixel wand. </dd> 686 687 <dd> </dd> 688 </dl> 689 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetMagenta">PixelGetMagenta</a></h2> 690 691 <p>PixelGetMagenta() returns the normalized magenta color of the pixel wand.</p> 692 693 <p>The format of the PixelGetMagenta method is:</p> 694 695 <pre class="text"> 696 double PixelGetMagenta(const PixelWand *wand) 697 </pre> 698 699 <p>A description of each parameter follows:</p> 700 701 <dd> 702 </dd> 703 704 <dd> </dd> 705 <dl class="dl-horizontal"> 706 <dt>wand</dt> 707 <dd>the pixel wand. </dd> 708 709 <dd> </dd> 710 </dl> 711 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetMagentaQuantum">PixelGetMagentaQuantum</a></h2> 712 713 <p>PixelGetMagentaQuantum() returns the magenta color of the pixel wand.</p> 714 715 <p>The format of the PixelGetMagentaQuantum method is:</p> 716 717 <pre class="text"> 718 Quantum PixelGetMagentaQuantum(const PixelWand *wand) 719 </pre> 720 721 <p>A description of each parameter follows:</p> 722 723 <dd> 724 </dd> 725 726 <dd> </dd> 727 <dl class="dl-horizontal"> 728 <dt>wand</dt> 729 <dd>the pixel wand. </dd> 730 731 <dd> </dd> 732 </dl> 733 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetMagickColor">PixelGetMagickColor</a></h2> 734 735 <p>PixelGetMagickColor() gets the magick color of the pixel wand.</p> 736 737 <p>The format of the PixelGetMagickColor method is:</p> 738 739 <pre class="text"> 740 void PixelGetMagickColor(PixelWand *wand,PixelInfo *color) 741 </pre> 742 743 <p>A description of each parameter follows:</p> 744 745 <dd> 746 </dd> 747 748 <dd> </dd> 749 <dl class="dl-horizontal"> 750 <dt>wand</dt> 751 <dd>the pixel wand. </dd> 752 753 <dd> </dd> 754 <dt>color</dt> 755 <dd> The pixel wand color is returned here. </dd> 756 757 <dd> </dd> 758 </dl> 759 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetPixel">PixelGetPixel</a></h2> 760 761 <p>PixelGetPixel() returns the pixel wand pixel.</p> 762 763 <p>The format of the PixelGetPixel method is:</p> 764 765 <pre class="text"> 766 PixelInfo PixelGetPixel(const PixelWand *wand) 767 </pre> 768 769 <p>A description of each parameter follows:</p> 770 771 <dd> 772 </dd> 773 774 <dd> </dd> 775 <dl class="dl-horizontal"> 776 <dt>wand</dt> 777 <dd>the pixel wand. </dd> 778 779 <dd> </dd> 780 </dl> 781 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetQuantumPacket">PixelGetQuantumPacket</a></h2> 782 783 <p>PixelGetQuantumPacket() gets the packet of the pixel wand as a PixelInfo.</p> 784 785 <p>The format of the PixelGetQuantumPacket method is:</p> 786 787 <pre class="text"> 788 void PixelGetQuantumPacket(PixelWand *wand,PixelInfo *packet) 789 </pre> 790 791 <p>A description of each parameter follows:</p> 792 793 <dd> 794 </dd> 795 796 <dd> </dd> 797 <dl class="dl-horizontal"> 798 <dt>wand</dt> 799 <dd>the pixel wand. </dd> 800 801 <dd> </dd> 802 <dt>packet</dt> 803 <dd> The pixel wand packet is returned here. </dd> 804 805 <dd> </dd> 806 </dl> 807 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetQuantumPixel">PixelGetQuantumPixel</a></h2> 808 809 <p>PixelGetQuantumPixel() gets the pixel of the pixel wand as a PixelInfo.</p> 810 811 <p>The format of the PixelGetQuantumPixel method is:</p> 812 813 <pre class="text"> 814 void PixelGetQuantumPixel(const Image *image,const PixelWand *wand, 815 Quantum *pixel) 816 </pre> 817 818 <p>A description of each parameter follows:</p> 819 820 <dd> 821 </dd> 822 823 <dd> </dd> 824 <dl class="dl-horizontal"> 825 <dt>wand</dt> 826 <dd>the pixel wand. </dd> 827 828 <dd> </dd> 829 <dt>pixel</dt> 830 <dd> The pixel wand pixel is returned here. </dd> 831 832 <dd> </dd> 833 </dl> 834 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetRed">PixelGetRed</a></h2> 835 836 <p>PixelGetRed() returns the normalized red color of the pixel wand.</p> 837 838 <p>The format of the PixelGetRed method is:</p> 839 840 <pre class="text"> 841 double PixelGetRed(const PixelWand *wand) 842 </pre> 843 844 <p>A description of each parameter follows:</p> 845 846 <dd> 847 </dd> 848 849 <dd> </dd> 850 <dl class="dl-horizontal"> 851 <dt>wand</dt> 852 <dd>the pixel wand. </dd> 853 854 <dd> </dd> 855 </dl> 856 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetRedQuantum">PixelGetRedQuantum</a></h2> 857 858 <p>PixelGetRedQuantum() returns the red color of the pixel wand.</p> 859 860 <p>The format of the PixelGetRedQuantum method is:</p> 861 862 <pre class="text"> 863 Quantum PixelGetRedQuantum(const PixelWand *wand) 864 </pre> 865 866 <p>A description of each parameter follows:</p> 867 868 <dd> 869 </dd> 870 871 <dd> </dd> 872 <dl class="dl-horizontal"> 873 <dt>wand</dt> 874 <dd>the pixel wand. </dd> 875 876 <dd> </dd> 877 </dl> 878 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetYellow">PixelGetYellow</a></h2> 879 880 <p>PixelGetYellow() returns the normalized yellow color of the pixel wand.</p> 881 882 <p>The format of the PixelGetYellow method is:</p> 883 884 <pre class="text"> 885 double PixelGetYellow(const PixelWand *wand) 886 </pre> 887 888 <p>A description of each parameter follows:</p> 889 890 <dd> 891 </dd> 892 893 <dd> </dd> 894 <dl class="dl-horizontal"> 895 <dt>wand</dt> 896 <dd>the pixel wand. </dd> 897 898 <dd> </dd> 899 </dl> 900 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetYellowQuantum">PixelGetYellowQuantum</a></h2> 901 902 <p>PixelGetYellowQuantum() returns the yellow color of the pixel wand.</p> 903 904 <p>The format of the PixelGetYellowQuantum method is:</p> 905 906 <pre class="text"> 907 Quantum PixelGetYellowQuantum(const PixelWand *wand) 908 </pre> 909 910 <p>A description of each parameter follows:</p> 911 912 <dd> 913 </dd> 914 915 <dd> </dd> 916 <dl class="dl-horizontal"> 917 <dt>wand</dt> 918 <dd>the pixel wand. </dd> 919 920 <dd> </dd> 921 </dl> 922 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetAlpha">PixelSetAlpha</a></h2> 923 924 <p>PixelSetAlpha() sets the normalized alpha value of the pixel wand.</p> 925 926 <p>The format of the PixelSetAlpha method is:</p> 927 928 <pre class="text"> 929 void PixelSetAlpha(PixelWand *wand,const double alpha) 930 </pre> 931 932 <p>A description of each parameter follows:</p> 933 934 <dd> 935 </dd> 936 937 <dd> </dd> 938 <dl class="dl-horizontal"> 939 <dt>wand</dt> 940 <dd>the pixel wand. </dd> 941 942 <dd> </dd> 943 <dt>alpha</dt> 944 <dd>the level of transparency: 1.0 is fully opaque and 0.0 is fully transparent. </dd> 945 946 <dd> </dd> 947 </dl> 948 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetAlphaQuantum">PixelSetAlphaQuantum</a></h2> 949 950 <p>PixelSetAlphaQuantum() sets the alpha value of the pixel wand.</p> 951 952 <p>The format of the PixelSetAlphaQuantum method is:</p> 953 954 <pre class="text"> 955 void PixelSetAlphaQuantum(PixelWand *wand,const Quantum alpha) 956 </pre> 957 958 <p>A description of each parameter follows:</p> 959 960 <dd> 961 </dd> 962 963 <dd> </dd> 964 <dl class="dl-horizontal"> 965 <dt>wand</dt> 966 <dd>the pixel wand. </dd> 967 968 <dd> </dd> 969 <dt>alpha</dt> 970 <dd>the alpha value. </dd> 971 972 <dd> </dd> 973 </dl> 974 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetBlack">PixelSetBlack</a></h2> 975 976 <p>PixelSetBlack() sets the normalized black color of the pixel wand.</p> 977 978 <p>The format of the PixelSetBlack method is:</p> 979 980 <pre class="text"> 981 void PixelSetBlack(PixelWand *wand,const double black) 982 </pre> 983 984 <p>A description of each parameter follows:</p> 985 986 <dd> 987 </dd> 988 989 <dd> </dd> 990 <dl class="dl-horizontal"> 991 <dt>wand</dt> 992 <dd>the pixel wand. </dd> 993 994 <dd> </dd> 995 <dt>black</dt> 996 <dd>the black color. </dd> 997 998 <dd> </dd> 999 </dl> 1000 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetBlackQuantum">PixelSetBlackQuantum</a></h2> 1001 1002 <p>PixelSetBlackQuantum() sets the black color of the pixel wand.</p> 1003 1004 <p>The format of the PixelSetBlackQuantum method is:</p> 1005 1006 <pre class="text"> 1007 void PixelSetBlackQuantum(PixelWand *wand,const Quantum black) 1008 </pre> 1009 1010 <p>A description of each parameter follows:</p> 1011 1012 <dd> 1013 </dd> 1014 1015 <dd> </dd> 1016 <dl class="dl-horizontal"> 1017 <dt>wand</dt> 1018 <dd>the pixel wand. </dd> 1019 1020 <dd> </dd> 1021 <dt>black</dt> 1022 <dd>the black color. </dd> 1023 1024 <dd> </dd> 1025 </dl> 1026 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetBlue">PixelSetBlue</a></h2> 1027 1028 <p>PixelSetBlue() sets the normalized blue color of the pixel wand.</p> 1029 1030 <p>The format of the PixelSetBlue method is:</p> 1031 1032 <pre class="text"> 1033 void PixelSetBlue(PixelWand *wand,const double blue) 1034 </pre> 1035 1036 <p>A description of each parameter follows:</p> 1037 1038 <dd> 1039 </dd> 1040 1041 <dd> </dd> 1042 <dl class="dl-horizontal"> 1043 <dt>wand</dt> 1044 <dd>the pixel wand. </dd> 1045 1046 <dd> </dd> 1047 <dt>blue</dt> 1048 <dd>the blue color. </dd> 1049 1050 <dd> </dd> 1051 </dl> 1052 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetBlueQuantum">PixelSetBlueQuantum</a></h2> 1053 1054 <p>PixelSetBlueQuantum() sets the blue color of the pixel wand.</p> 1055 1056 <p>The format of the PixelSetBlueQuantum method is:</p> 1057 1058 <pre class="text"> 1059 void PixelSetBlueQuantum(PixelWand *wand,const Quantum blue) 1060 </pre> 1061 1062 <p>A description of each parameter follows:</p> 1063 1064 <dd> 1065 </dd> 1066 1067 <dd> </dd> 1068 <dl class="dl-horizontal"> 1069 <dt>wand</dt> 1070 <dd>the pixel wand. </dd> 1071 1072 <dd> </dd> 1073 <dt>blue</dt> 1074 <dd>the blue color. </dd> 1075 1076 <dd> </dd> 1077 </dl> 1078 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetColor">PixelSetColor</a></h2> 1079 1080 <p>PixelSetColor() sets the color of the pixel wand with a string (e.g. "blue", "#0000ff", "rgb(0,0,255)", "cmyk(100,100,100,10)", etc.).</p> 1081 1082 <p>The format of the PixelSetColor method is:</p> 1083 1084 <pre class="text"> 1085 MagickBooleanType PixelSetColor(PixelWand *wand,const char *color) 1086 </pre> 1087 1088 <p>A description of each parameter follows:</p> 1089 1090 <dd> 1091 </dd> 1092 1093 <dd> </dd> 1094 <dl class="dl-horizontal"> 1095 <dt>wand</dt> 1096 <dd>the pixel wand. </dd> 1097 1098 <dd> </dd> 1099 <dt>color</dt> 1100 <dd>the pixel wand color. </dd> 1101 1102 <dd> </dd> 1103 </dl> 1104 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetColorCount">PixelSetColorCount</a></h2> 1105 1106 <p>PixelSetColorCount() sets the color count of the pixel wand.</p> 1107 1108 <p>The format of the PixelSetColorCount method is:</p> 1109 1110 <pre class="text"> 1111 void PixelSetColorCount(PixelWand *wand,const size_t count) 1112 </pre> 1113 1114 <p>A description of each parameter follows:</p> 1115 1116 <dd> 1117 </dd> 1118 1119 <dd> </dd> 1120 <dl class="dl-horizontal"> 1121 <dt>wand</dt> 1122 <dd>the pixel wand. </dd> 1123 1124 <dd> </dd> 1125 <dt>count</dt> 1126 <dd>the number of this particular color. </dd> 1127 1128 <dd> </dd> 1129 </dl> 1130 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetColorFromWand">PixelSetColorFromWand</a></h2> 1131 1132 <p>PixelSetColorFromWand() sets the color of the pixel wand.</p> 1133 1134 <p>The format of the PixelSetColorFromWand method is:</p> 1135 1136 <pre class="text"> 1137 void PixelSetColorFromWand(PixelWand *wand,const PixelWand *color) 1138 </pre> 1139 1140 <p>A description of each parameter follows:</p> 1141 1142 <dd> 1143 </dd> 1144 1145 <dd> </dd> 1146 <dl class="dl-horizontal"> 1147 <dt>wand</dt> 1148 <dd>the pixel wand. </dd> 1149 1150 <dd> </dd> 1151 <dt>color</dt> 1152 <dd>set the pixel wand color here. </dd> 1153 1154 <dd> </dd> 1155 </dl> 1156 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetCyan">PixelSetCyan</a></h2> 1157 1158 <p>PixelSetCyan() sets the normalized cyan color of the pixel wand.</p> 1159 1160 <p>The format of the PixelSetCyan method is:</p> 1161 1162 <pre class="text"> 1163 void PixelSetCyan(PixelWand *wand,const double cyan) 1164 </pre> 1165 1166 <p>A description of each parameter follows:</p> 1167 1168 <dd> 1169 </dd> 1170 1171 <dd> </dd> 1172 <dl class="dl-horizontal"> 1173 <dt>wand</dt> 1174 <dd>the pixel wand. </dd> 1175 1176 <dd> </dd> 1177 <dt>cyan</dt> 1178 <dd>the cyan color. </dd> 1179 1180 <dd> </dd> 1181 </dl> 1182 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetCyanQuantum">PixelSetCyanQuantum</a></h2> 1183 1184 <p>PixelSetCyanQuantum() sets the cyan color of the pixel wand.</p> 1185 1186 <p>The format of the PixelSetCyanQuantum method is:</p> 1187 1188 <pre class="text"> 1189 void PixelSetCyanQuantum(PixelWand *wand,const Quantum cyan) 1190 </pre> 1191 1192 <p>A description of each parameter follows:</p> 1193 1194 <dd> 1195 </dd> 1196 1197 <dd> </dd> 1198 <dl class="dl-horizontal"> 1199 <dt>wand</dt> 1200 <dd>the pixel wand. </dd> 1201 1202 <dd> </dd> 1203 <dt>cyan</dt> 1204 <dd>the cyan color. </dd> 1205 1206 <dd> </dd> 1207 </dl> 1208 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetFuzz">PixelSetFuzz</a></h2> 1209 1210 <p>PixelSetFuzz() sets the fuzz value of the pixel wand.</p> 1211 1212 <p>The format of the PixelSetFuzz method is:</p> 1213 1214 <pre class="text"> 1215 void PixelSetFuzz(PixelWand *wand,const double fuzz) 1216 </pre> 1217 1218 <p>A description of each parameter follows:</p> 1219 1220 <dd> 1221 </dd> 1222 1223 <dd> </dd> 1224 <dl class="dl-horizontal"> 1225 <dt>wand</dt> 1226 <dd>the pixel wand. </dd> 1227 1228 <dd> </dd> 1229 <dt>fuzz</dt> 1230 <dd>the fuzz value. </dd> 1231 1232 <dd> </dd> 1233 </dl> 1234 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetGreen">PixelSetGreen</a></h2> 1235 1236 <p>PixelSetGreen() sets the normalized green color of the pixel wand.</p> 1237 1238 <p>The format of the PixelSetGreen method is:</p> 1239 1240 <pre class="text"> 1241 void PixelSetGreen(PixelWand *wand,const double green) 1242 </pre> 1243 1244 <p>A description of each parameter follows:</p> 1245 1246 <dd> 1247 </dd> 1248 1249 <dd> </dd> 1250 <dl class="dl-horizontal"> 1251 <dt>wand</dt> 1252 <dd>the pixel wand. </dd> 1253 1254 <dd> </dd> 1255 <dt>green</dt> 1256 <dd>the green color. </dd> 1257 1258 <dd> </dd> 1259 </dl> 1260 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetGreenQuantum">PixelSetGreenQuantum</a></h2> 1261 1262 <p>PixelSetGreenQuantum() sets the green color of the pixel wand.</p> 1263 1264 <p>The format of the PixelSetGreenQuantum method is:</p> 1265 1266 <pre class="text"> 1267 void PixelSetGreenQuantum(PixelWand *wand,const Quantum green) 1268 </pre> 1269 1270 <p>A description of each parameter follows:</p> 1271 1272 <dd> 1273 </dd> 1274 1275 <dd> </dd> 1276 <dl class="dl-horizontal"> 1277 <dt>wand</dt> 1278 <dd>the pixel wand. </dd> 1279 1280 <dd> </dd> 1281 <dt>green</dt> 1282 <dd>the green color. </dd> 1283 1284 <dd> </dd> 1285 </dl> 1286 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetHSL">PixelSetHSL</a></h2> 1287 1288 <p>PixelSetHSL() sets the normalized HSL color of the pixel wand.</p> 1289 1290 <p>The format of the PixelSetHSL method is:</p> 1291 1292 <pre class="text"> 1293 void PixelSetHSL(PixelWand *wand,const double hue, 1294 const double saturation,const double lightness) 1295 </pre> 1296 1297 <p>A description of each parameter follows:</p> 1298 1299 <dd> 1300 </dd> 1301 1302 <dd> </dd> 1303 <dl class="dl-horizontal"> 1304 <dt>wand</dt> 1305 <dd>the pixel wand. </dd> 1306 1307 <dd> </dd> 1308 <dt>hue,saturation,lightness</dt> 1309 <dd>Return the pixel hue, saturation, and brightness. </dd> 1310 1311 <dd> </dd> 1312 </dl> 1313 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetIndex">PixelSetIndex</a></h2> 1314 1315 <p>PixelSetIndex() sets the colormap index of the pixel wand.</p> 1316 1317 <p>The format of the PixelSetIndex method is:</p> 1318 1319 <pre class="text"> 1320 void PixelSetIndex(PixelWand *wand,const Quantum index) 1321 </pre> 1322 1323 <p>A description of each parameter follows:</p> 1324 1325 <dd> 1326 </dd> 1327 1328 <dd> </dd> 1329 <dl class="dl-horizontal"> 1330 <dt>wand</dt> 1331 <dd>the pixel wand. </dd> 1332 1333 <dd> </dd> 1334 <dt>index</dt> 1335 <dd>the colormap index. </dd> 1336 1337 <dd> </dd> 1338 </dl> 1339 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetMagenta">PixelSetMagenta</a></h2> 1340 1341 <p>PixelSetMagenta() sets the normalized magenta color of the pixel wand.</p> 1342 1343 <p>The format of the PixelSetMagenta method is:</p> 1344 1345 <pre class="text"> 1346 void PixelSetMagenta(PixelWand *wand,const double magenta) 1347 </pre> 1348 1349 <p>A description of each parameter follows:</p> 1350 1351 <dd> 1352 </dd> 1353 1354 <dd> </dd> 1355 <dl class="dl-horizontal"> 1356 <dt>wand</dt> 1357 <dd>the pixel wand. </dd> 1358 1359 <dd> </dd> 1360 <dt>magenta</dt> 1361 <dd>the magenta color. </dd> 1362 1363 <dd> </dd> 1364 </dl> 1365 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetMagentaQuantum">PixelSetMagentaQuantum</a></h2> 1366 1367 <p>PixelSetMagentaQuantum() sets the magenta color of the pixel wand.</p> 1368 1369 <p>The format of the PixelSetMagentaQuantum method is:</p> 1370 1371 <pre class="text"> 1372 void PixelSetMagentaQuantum(PixelWand *wand, 1373 const Quantum magenta) 1374 </pre> 1375 1376 <p>A description of each parameter follows:</p> 1377 1378 <dd> 1379 </dd> 1380 1381 <dd> </dd> 1382 <dl class="dl-horizontal"> 1383 <dt>wand</dt> 1384 <dd>the pixel wand. </dd> 1385 1386 <dd> </dd> 1387 <dt>magenta</dt> 1388 <dd>the green magenta. </dd> 1389 1390 <dd> </dd> 1391 </dl> 1392 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetPixelColor">PixelSetPixelColor</a></h2> 1393 1394 <p>PixelSetPixelColor() sets the color of the pixel wand.</p> 1395 1396 <p>The format of the PixelSetPixelColor method is:</p> 1397 1398 <pre class="text"> 1399 void PixelSetPixelColor(PixelWand *wand,const PixelInfo *color) 1400 </pre> 1401 1402 <p>A description of each parameter follows:</p> 1403 1404 <dd> 1405 </dd> 1406 1407 <dd> </dd> 1408 <dl class="dl-horizontal"> 1409 <dt>wand</dt> 1410 <dd>the pixel wand. </dd> 1411 1412 <dd> </dd> 1413 <dt>color</dt> 1414 <dd>the pixel wand color. </dd> 1415 1416 <dd> </dd> 1417 </dl> 1418 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetQuantumPixel">PixelSetQuantumPixel</a></h2> 1419 1420 <p>PixelSetQuantumPixel() sets the pixel of the pixel wand.</p> 1421 1422 <p>The format of the PixelSetQuantumPixel method is:</p> 1423 1424 <pre class="text"> 1425 void PixelSetQuantumPixel(const Image *image,const Quantum *pixel, 1426 PixelWand *wand) 1427 </pre> 1428 1429 <p>A description of each parameter follows:</p> 1430 1431 <dd> 1432 </dd> 1433 1434 <dd> </dd> 1435 <dl class="dl-horizontal"> 1436 <dt>wand</dt> 1437 <dd>the pixel wand. </dd> 1438 1439 <dd> </dd> 1440 <dt>pixel</dt> 1441 <dd>the pixel wand pixel. </dd> 1442 1443 <dd> </dd> 1444 </dl> 1445 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetRed">PixelSetRed</a></h2> 1446 1447 <p>PixelSetRed() sets the normalized red color of the pixel wand.</p> 1448 1449 <p>The format of the PixelSetRed method is:</p> 1450 1451 <pre class="text"> 1452 void PixelSetRed(PixelWand *wand,const double red) 1453 </pre> 1454 1455 <p>A description of each parameter follows:</p> 1456 1457 <dd> 1458 </dd> 1459 1460 <dd> </dd> 1461 <dl class="dl-horizontal"> 1462 <dt>wand</dt> 1463 <dd>the pixel wand. </dd> 1464 1465 <dd> </dd> 1466 <dt>red</dt> 1467 <dd>the red color. </dd> 1468 1469 <dd> </dd> 1470 </dl> 1471 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetRedQuantum">PixelSetRedQuantum</a></h2> 1472 1473 <p>PixelSetRedQuantum() sets the red color of the pixel wand.</p> 1474 1475 <p>The format of the PixelSetRedQuantum method is:</p> 1476 1477 <pre class="text"> 1478 void PixelSetRedQuantum(PixelWand *wand,const Quantum red) 1479 </pre> 1480 1481 <p>A description of each parameter follows:</p> 1482 1483 <dd> 1484 </dd> 1485 1486 <dd> </dd> 1487 <dl class="dl-horizontal"> 1488 <dt>wand</dt> 1489 <dd>the pixel wand. </dd> 1490 1491 <dd> </dd> 1492 <dt>red</dt> 1493 <dd>the red color. </dd> 1494 1495 <dd> </dd> 1496 </dl> 1497 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetYellow">PixelSetYellow</a></h2> 1498 1499 <p>PixelSetYellow() sets the normalized yellow color of the pixel wand.</p> 1500 1501 <p>The format of the PixelSetYellow method is:</p> 1502 1503 <pre class="text"> 1504 void PixelSetYellow(PixelWand *wand,const double yellow) 1505 </pre> 1506 1507 <p>A description of each parameter follows:</p> 1508 1509 <dd> 1510 </dd> 1511 1512 <dd> </dd> 1513 <dl class="dl-horizontal"> 1514 <dt>wand</dt> 1515 <dd>the pixel wand. </dd> 1516 1517 <dd> </dd> 1518 <dt>yellow</dt> 1519 <dd>the yellow color. </dd> 1520 1521 <dd> </dd> 1522 </dl> 1523 <h2><a href="http://nextgen.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetYellowQuantum">PixelSetYellowQuantum</a></h2> 1524 1525 <p>PixelSetYellowQuantum() sets the yellow color of the pixel wand.</p> 1526 1527 <p>The format of the PixelSetYellowQuantum method is:</p> 1528 1529 <pre class="text"> 1530 void PixelSetYellowQuantum(PixelWand *wand,const Quantum yellow) 1531 </pre> 1532 1533 <p>A description of each parameter follows:</p> 1534 1535 <dd> 1536 </dd> 1537 1538 <dd> </dd> 1539 <dl class="dl-horizontal"> 1540 <dt>wand</dt> 1541 <dd>the pixel wand. </dd> 1542 1543 <dd> </dd> 1544 <dt>yellow</dt> 1545 <dd>the yellow color. </dd> 1546 1547 <dd> </dd> 1548 </dl> 1549 </div> 1550 <footer class="magick-footer"> 1551 <p><a href="../script/support.php">Donate</a> 1552 <a href="../script/sitemap.php">Sitemap</a> 1553 <a href="../script/links.php">Related</a> 1554 <a href="../script/architecture.php">Architecture</a> 1555 </p> 1556 <p><a href="pixel-wand.php#">Back to top</a> 1557 <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x89AB63D48277377A">Public Key</a> 1558 <a href="../script/contact.php">Contact Us</a></p> 1559 <p><small> 1999-2016 ImageMagick Studio LLC</small></p> 1560 </footer> 1561 </div><!-- /.container --> 1562 1563 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> 1564 <script src="http://nextgen.imagemagick.org/js/magick.php"></script> 1565 </div> 1566 </body> 1567 </html> 1568