X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=www%2Fmagick-wand.html;h=c8d91f039ed644f5249d9881c1e6fffe3bc94f2c;hb=e9a32c3a7f2e79afe8d244eeda396b66473ebb75;hp=9d75088b2c30dd42718dd2f109362ee2631ab804;hpb=3e4842b32416705d09ed7065947e715a26fc9308;p=imagemagick diff --git a/www/magick-wand.html b/www/magick-wand.html index 9d75088b2..c8d91f039 100644 --- a/www/magick-wand.html +++ b/www/magick-wand.html @@ -1,16 +1,20 @@ - - + + - ImageMagick: MagickWand, C API for ImageMagick + ImageMagick: MagickWand, C API for ImageMagick - + @@ -20,29 +24,52 @@ - + - + + + + + +
- - [ImageMagick] - - [sponsor] +
+ + +
- + ImageMagick Logo -
@@ -61,6 +88,9 @@
Mac OS X
+
+ iPhone +
Windows
@@ -90,7 +120,7 @@ PerlMagick
- Magick++ + Magick++
- Links + Links
- - +
- +

MagickWand C API

+

The MagickWand API is the recommended interface between the C programming language and the ImageMagick image processing libraries. Unlike the MagickCore C API, MagickWand uses only a few opaque types. Accessors are available to set or get important wand properties. A description of the MagickWand public methods are found here:

After you write your MagickWand program, compile it like this:

@@ -365,7 +392,7 @@ int main(int argc,char **argv) }
-

Now lets perform the same contrast enhancement while taking advantage of our dual or quad-core processing system by running the algorithm in parallel utilizing wand views. The sigmoidal-contrast.c module reads an image, applies sigmoidal non-linearity contrast control, and writes the result to disk just like the previous contrast enhancement program, but now it does its work in parallel (assumes ImageMagick is built with OpenMP support).

+

Now lets perform the same contrast enhancement while taking advantage of our dual or quad-core processing system by running the algorithm in parallel utilizing wand views. The sigmoidal-contrast.c module reads an image, applies sigmoidal non-linearity contrast control, and writes the result to disk just like the previous contrast enhancement program, but now it does its work in parallel (assumes ImageMagick is built with OpenMP support).

@@ -411,14 +438,14 @@ int main(int argc,char **argv)
 {
 #define ThrowViewException(view) \
 { \
-  description=GetWandViewException(view,&severity); \
+  description=GetWandViewException(view,&severity); \
   (void) fprintf(stderr,"%s %s %lu %s\n",GetMagickModule(),description); \
   description=(char *) MagickRelinquishMemory(description); \
   exit(-1); \
 }
 #define ThrowWandException(wand) \
 { \
-  description=MagickGetException(wand,&severity); \
+  description=MagickGetException(wand,&severity); \
   (void) fprintf(stderr,"%s %s %lu %s\n",GetMagickModule(),description); \
   description=(char *) MagickRelinquishMemory(description); \
   exit(-1); \
@@ -477,6 +504,7 @@ int main(int argc,char **argv)
 }
 
+
@@ -489,7 +517,7 @@ int main(int argc,char **argv)