1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
\r
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
\r
3 <html version="-//W3C//DTD XHTML 1.1//EN"
\r
4 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
\r
5 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
\r
6 xsi:schemaLocation="http://www.w3.org/1999/xhtml
\r
7 http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd">
\r
9 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
\r
10 <meta name="google-site-verification" content="MxsMq6bdLOx0KSuz1MY6yG9ZTIJ7_7DVRfl5NCAT5Yg"/>
\r
11 <title>ImageMagick: Magick Vector Graphics</title>
12 <meta http-equiv="Content-Language" content="en-US"/>
13 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
14 <meta http-equiv="Reply-to" content="magick-users@imagemagick.org"/>
15 <meta name="Application-name" content="ImageMagick"/>
16 <meta name="Description" content="Use ImageMagick to convert, edit, or compose bitmap images in a variety of formats. In addition resize, rotate, shear, distort and transform images automagically."/>
17 <meta name="Application-url" content="http://www.imagemagick.org"/>
18 <meta name="Generator" content="PHP"/>
19 <meta name="Keywords" content="magick, vector, graphics, ImageMagick, ImageMagic, MagickCore, MagickWand, PerlMagick, Magick++, RMagick, PythonMagick, JMagick, TclMagick, Image, Magick, Magic, Wand, ImageMagickObject, Image, Processing, Automagically"/>
20 <meta name="Rating" content="GENERAL"/>
21 <meta name="Robots" content="INDEX, FOLLOW"/>
22 <meta name="Generator" content="ImageMagick Studio LLC"/>
23 <meta name="Author" content="ImageMagick Studio LLC"/>
24 <meta name="Revisit-after" content="2 DAYS"/>
25 <meta name="Resource-type" content="document"/>
26 <meta name="Copyright" content="Copyright (c) 1999-2011 ImageMagick Studio LLC"/>
27 <meta name="Distribution" content="Global"/>
28 <link rel="icon" href="../images/wand.png"/>
29 <link rel="shortcut icon" href="../images/wand.ico" type="images/x-icon"/>
30 <link rel="canonical" href="http://www.imagemagick.org" />
\r
31 <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf"/>
\r
32 <link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
\r
33 <link rel="stylesheet" type="text/css" href="http://www.imagemagick.org/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
\r
34 <style type="text/css" media="all">
\r
35 @import url("../www/magick.css");
\r
37 <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
\r
38 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
\r
39 <script type="text/javascript" src="http://www.imagemagick.org/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
\r
40 <script type="text/javascript">
\r
41 $(document).ready(function() {
\r
42 $("a[href$=.jpg],a[href$=.png],a[href$=.gif]").fancybox({
\r
43 'transitionIn' : 'elastic',
\r
44 'transitionOut' : 'elastic',
\r
45 'overlayShow' : false,
\r
52 <body id="www-imagemagick-org">
\r
53 <div class="titlebar">
\r
54 <div style="margin: 17px auto; float: left;">
\r
55 <script type="text/javascript">
\r
57 google_ad_client = "pub-3129977114552745";
\r
58 google_ad_slot = "5439289906";
\r
59 google_ad_width = 728;
\r
60 google_ad_height = 90;
\r
63 <script type="text/javascript"
\r
64 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
\r
67 <a href="http://www.imagemagick.org/discourse-server/">
\r
68 <img src="../images/logo.jpg"
\r
69 alt="ImageMagick Logo"
\r
70 style="width: 123px; height: 118px; border: 0px; float: right;" /></a>
\r
71 <a href="../index.html">
\r
72 <img src="../images/sprite.jpg"
\r
73 alt="ImageMagick Sprite"
\r
74 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
77 <div class="westbar">
\r
80 <a title="About ImageMagick" href="../index.html">About ImageMagick</a>
83 <a title="Binary Releases" href="../www/binary-releases.html">Binary Releases</a>
86 <a title="Binary Release: Unix" href="../www/binary-releases.html#unix">Unix</a>
89 <a title="Binary Release: MacOS X" href="../www/binary-releases.html#macosx">Mac OS X</a>
92 <a title="Binary Release: iOS" href="../www/binary-releases.html#iOS">iOS</a>
95 <a title="Binary Release: Windows" href="../www/binary-releases.html#windows">Windows</a>
97 <div class="sep"></div>
\r
99 <a title="Command-line Tools" href="../www/command-line-tools.html">Command-line Tools</a>
102 <a title="Command-line Tools: Processing" href="../www/command-line-processing.html">Processing</a>
105 <a title="Command-line Tools: Options" href="../www/command-line-options.html">Options</a>
108 <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
111 <a title="Program Interfaces" href="../www/api.html">Program Interfaces</a>
114 <a title="Program Interface: MagickWand" href="../www/magick-wand.html">MagickWand</a>
117 <a title="Program Interface: MagickCore" href="../www/magick-core.html">MagickCore</a>
120 <a title="Program Interface: PerlMagick" href="../www/perl-magick.html">PerlMagick</a>
123 <a title="Program Interface: Magick++" href="../www/magick++.html">Magick++</a>
125 <div class="sep"></div>
\r
127 <a title="Install from Source" href="../www/install-source.html">Install from Source</a>
130 <a title="Install from Source: Unix" href="../www/install-source.html#unix">Unix</a>
133 <a title="Install from Source: Windows" href="../www/install-source.html#windows">Windows</a>
136 <a title="Resources" href="../www/resources.html">Resources</a>
139 <a title="Architecture" href="../www/architecture.html">Architecture</a>
142 <a title="Download" href="../www/download.html">Download</a>
144 <div class="sep"></div>
\r
146 <a title="Search" href="../www/search.html">Search</a>
148 <div class="sep"></div>
\r
150 <a title="Site Map" href="../www/sitemap.html">Site Map</a>
153 <a title="Site Map: Links" href="../www/links.html">Links</a>
155 <div class="sep"></div>
\r
157 <a rel="follow" title="Sponsors" href="../www/sponsors.html">Sponsors:</a>
159 <a href="http://www.networkredux.com">
160 <img src="../images/networkredux.png" width="140" height="31" alt="[sponsor]"
161 style="margin-top: 4px; margin-left: 4px; border: 0px; float: left;" /></a>
162 <div class="sponsbox">
163 <div class="sponsor">
164 <a rel="follow" title="Sponsor: Autoteile" href="http://www.q11-shop.de">Autoteile</a><!-- 201205010540s suvalj -->
166 <div class="sponsor">
167 <a rel="follow" title="Sponsor: Web Hosting" href="http://www.micfo.com">Web Hosting</a><!-- 209901010090s golestan -->
169 <div class="sponsor">
170 <a rel="follow" title="Sponsor: Search engine optimisation" href="http://www.seomoves.com.au">Search engine optimisation</a><!-- 201110010090s jen@seo lowprofilelinks -->
172 <div class="sponsor">
173 <a rel="follow" title="Sponsor: Druckerei" href="http://print24.com/de/">Druckerei</a><!-- 201110010720 -->
175 <div class="sponsor">
176 <a rel="follow" title="Sponsor: Web Hosting Deals" href="http://www.webhostingdeals.org">Web Hosting Deals</a><!-- 201111010270 chee.hoa darin -->
178 <div class="sponsor">
179 <a rel="follow" title="Sponsor: Autos part" href="http://www.pkwteile.de/autoteile">Autos part</a><!-- 201112010090s jr@pkwte... -->
181 <div class="sponsor">
182 <a rel="follow" title="Sponsor: Web Hosting Reviews" href="http://www.webhostingsecretrevealed.com">Web Hosting Secret Revealed</a><!-- 201204010540 iamchee jerry -->
184 <div class="sponsor">
185 <a rel="follow" title="Sponsor: Web Hosting Break" href="http://www.webhostingbreak.com">Web Hosting Break</a><!-- 201109010090 ian@ian-m... -->
187 <div class="sponsor">
188 <a rel="follow" title="Sponsor: Druckerei" href="http://www.allesdruck.de">Druckerei</a><!-- 201303011500 r.leo -->
190 <div class="sponsor">
191 <a rel="follow" title="Sponsor: Website Hosting" href="http://www.hostreviewgeeks.com">Website Hosting</a><!-- 201110010090 alexanian media -->
193 <div class="sponsor">
194 <a rel="follow" title="Sponsor: Hotel München" href="http://www.messehotel-erb-muenchen.de">Hotel München</a><!-- 201111010450 cerb -->
196 <div class="sponsor">
197 <a rel="follow" title="Sponsor: Best Web Hosting" href="http://webhostinggeeks.com">Best Web Hosting</a><!-- 201110010720 -->
199 <div class="sponsor">
200 <a rel="follow" title="Sponsor: Flyer drucken" href="http://www.online-druck.biz">Flyer drucken</a><!-- 201109010900 Floeter-->
202 <div class="sponsor">
203 <a rel="follow" title="Sponsor: Web Hosting Ratings" href="http://webhostingrating.com">Web Hosting Ratings</a><!-- 201110010720 -->
205 <div class="sponsor">
206 <a rel="follow" title="Sponsor: Best Web Hosting" href="http://www.webhostingclue.com">Best Web Hosting</a><!-- 2012030100300 accounting@webhostingclue -->
212 <div class="eastbar">
\r
213 <div class="g-plusone" data-size="standard" data-count="false"></div>
\r
219 <h1>ImageMagick Magick Vector Graphics</h1>
220 <p class="navigation-index">[<a href="#intro">Introduction to Vector Graphics</a> • <a href="#overview">MVG Overview</a> • <a href="#primitives">Drawing Primitives</a>]</p>
223 <div class="doc-section">
225 <p>This specification defines the features and syntax for Magick Vector Graphics (MVG), a modularized language for describing two-dimensional vector and mixed vector/raster graphics in ImageMagick. You can use the language to draw from the
226 command line, from an MVG file, from an <a href="http://www.w3.org/TR/SVG/" >SVG -- Scalable Vector Graphics</a> file or from one of the ImageMagick <a href="../www/api.html">program interfaces</a>. Use this command, for example, to render an arc:</p>
228 <p class='crt'><span class="crtprompt"> $magick> </span><span class='crtin'>convert -size 100x60 canvas:skyblue -fill white -stroke black \ <br/>
229 -draw "path 'M 30,40 A 30,20 20 0,0 70,20 A 30,20 20 1,0 30,40 Z '" \ <br/>
231 <p>and here is the result:</p>
234 <a href="../images/arc.png"><img src="../images/arc.png" width="100" height="60" alt="arc" /></a>
237 <p>When the drawing gets sufficiently complex, we recommend you assemble the graphic primitives into a MVG file. For our example, we use <a href="../www/source/piechart.mvg">piechart.mvg</a>:</p>
239 <div class="viewport">
242 affine 0.283636 0 0 0.283846 -0 -0
248 rectangle 1,1 2199,1299
254 text 600,1100 'Average: 20.0'
260 path 'M700.0,600.0 L340.0,600.0 A360.0,360.0 0 0,1 408.1452123287954,389.2376150414973 z'
266 text 1400,140 'MagickWand for PHP'
272 text 1800,140 '(10.0%)'
278 rectangle 1330,100 1370,140
284 path 'M700.0,600.0 L408.1452123287954,389.2376150414973 A360.0,360.0 0 0,1 976.5894480359858,369.56936567559273 z'
290 text 1400,220 'MagickCore'
296 text 1800,220 '(29.0%)'
302 rectangle 1330,180 1370,220
308 path 'M700.0,600.0 L976.5894480359858,369.56936567559273 A360.0,360.0 0 0,1 964.2680466142854,844.4634932636567 z'
314 text 1400,300 'MagickWand'
320 text 1800,300 '(22.9%)'
326 rectangle 1330,260 1370,300
332 path 'M700.0,600.0 L964.2680466142854,844.4634932636567 A360.0,360.0 0 0,1 757.853099990584,955.3210081341651 z'
338 text 1400,380 'JMagick'
344 text 1800,380 '(10.6%)'
350 rectangle 1330,340 1370,380
356 path 'M700.0,600.0 L757.853099990584,955.3210081341651 A360.0,360.0 0 0,1 340.0,600.0 z'
362 text 1400,460 'Magick++'
368 text 1800,460 '(27.5%)'
374 rectangle 1330,420 1370,460
380 text 100,150 'ImageMagick'
386 circle 700,600 700,960
392 <p>to render a pie chart with this command:</p>
394 <p class='crt'><span class="crtprompt"> $magick> </span><span class='crtin'>convert piechart.mvg piechart.png</span></p>
395 <p>which produces this rendering:</p>
398 <a href="../images/piechart.png"><img src="../images/piechart.png" width="624" height="369" alt="piechart" /></a>
401 <p>However, in general, MVG is sufficiently difficult to work with that you probably want to use a program to generate your graphics in the SVG format. ImageMagick automagically converts SVG to MVG and renders your image, for example, we render <a href="../www/source/piechart.svg">piechart.svg</a> with this command:</p>
403 <p class='crt'><span class="crtprompt"> $magick> </span><span class='crtin'>convert piechart.svg piechart.jpg</span></p>
405 <p>to produce the same pie chart we created with the MVG language.</p>
407 <p>Drawing is available from many of the ImageMagick <a href="../www/api.html">program interfaces</a> as well. ImageMagick converts the drawing API calls to MVG and renders it. Here is example code written in the <a href="../www/magick-wand.html">MagickWand</a> language: </p>
409 <div class="viewport">
410 (void) PushDrawingWand(draw_wand);
412 const PointInfo points[6] =
422 DrawSetStrokeAntialias(draw_wand,True);
423 DrawSetStrokeWidth(draw_wand,9);
424 DrawSetStrokeLineCap(draw_wand,RoundCap);
425 DrawSetStrokeLineJoin(draw_wand,RoundJoin);
426 (void) DrawSetStrokeDashArray(draw_wand,0,(const double *)NULL);
427 (void) PixelSetColor(color,"#4000c2");
428 DrawSetStrokeColor(draw_wand,color);
429 DrawSetFillRule(draw_wand,EvenOddRule);
430 (void) PixelSetColor(color,"#800000");
431 DrawSetFillColor(draw_wand,color);
432 DrawPolygon(draw_wand,6,points);
434 (void) PopDrawingWand(draw_wand);
439 <h2><a id="overview"></a>MVG Overview</h2>
440 <div class="doc-section">
442 <p>MVG ignores all white-space between commands. This allows multiple MVG commands per line. It is common convention to terminate each MVG command with a new line to make MVG easier to edit and read. This syntax description uses indentation in MVG sequences to aid with understanding. Indentation is supported but is not required.</p>
444 <p>Metafile wrapper syntax (to support stand-alone MVG files):</p>
448 viewbox 0 0 width height
449 [ any other MVG commands ]
453 <p>Pattern syntax (saving and restoring context):</p>
456 push pattern id x,y width,height
463 <p>an example is (%s is a identifier string):</p>
467 push pattern %s 10,10 20,20
474 rectangle 10,10 20,20
480 <p>For image tiling use:</p>
483 push pattern id x,y width,height
488 <p>Note you can use the pattern for either the fill or stroke like:</p>
500 <p>The clip path defines a clipping area, where only the contained area to be drawn upon. Areas outside of the clipping areare masked.</p>
506 rectangle 10,10 20,20
515 <h2><a id="primitives"></a>Drawing Primitives</h2>
516 <div class="doc-section">
518 <p>Here is a complete description of the MVG drawing primitives:</p>
522 <dt class="doc"><a id="affine"></a>affine <em class="option">s<sub>x</sub></em>,<em class="option">r<sub>x</sub></em>,<em class="option">r<sub>y</sub></em>,<em class="option">s<sub>y</sub></em>,<em class="option">t<sub>x</sub></em>,<em class="option">t<sub>y</sub></em></dt>
528 <dt class="doc"><a id="arc"></a>arc <em class="option">x<sub>0</sub></em>,<em class="option">y<sub>0</sub></em> <em class="option">x<sub>1</sub></em>,<em class="option">y<sub>1</sub></em> <em class="option">a<sub>0</sub></em>,<em class="option">a<sub>1</sub></em></dt>
532 <dt class="doc"><a id="bezier"></a>bezier <em class="option">x<sub>0</sub></em>,<em class="option">y<sub>0</sub></em> ... <em class="option">x<sub>n</sub></em>,<em class="option">y<sub>n</sub></em></dt>
535 <p><kbd>Bezier</kbd> (spline) requires three or more x,y coordinates to define its shape. The first and last points are the knots (preserved coordinates) and any intermediate coordinates are the control points. If two control points are specified, the line between each end knot and its sequentially respective control point determines the tangent direction of the curve at that end. If one control point is specified, the lines from the end knots to the one control point determines the tangent directions of the curve at each end. If more than two control points are specified, then the additional control points act in combination to determine the intermediate shape of the curve. In order to
536 draw complex curves, it is highly recommended either to use the <kbd>Path</kbd> primitive or to draw multiple four-point bezier segments with the start and end knots of each successive segment repeated.</p>
539 <dt class="doc"><a id="border-color"></a>border-color <em class="option">color</em></dt>
543 <dt class="doc"><a id="circle"></a>circle <em class="option">origin<sub>x</sub></em>,<em class="option">origin<sub>y</sub></em> <em class="option">perimeter<sub>x</sub></em>,<em class="option">perimeter<sub>y</sub></em></dt>
547 <dt class="doc"><a id="clip-path"></a>clip-path url(<em class="option">name</em>)</dt>
551 <dt class="doc"><a id="clip-rule"></a>clip-rule <em class="option">rule</em></dt>
553 <dd>Choose from these rule types:
561 <dt class="doc"><a id="clip-units"></a>clip-units <em class="option">units</em></dt>
563 <dd>Choose from these unit types:
568 objectBoundingBox <br/>
572 <dt class="doc"><a id="color"></a>color <em class="option">x</em>,<em class="option">y</em> <em class="option">method</em></dt>
584 <dd>Choose from these method types:
596 <dt class="doc"><a id="decorate"></a>decorate <em class="option">type</em></dt>
599 <dd>Choose from these types of decorations:
610 <dt class="doc"><a id="ellipse"></a>ellipse <em class="option">center<sub>x</sub></em>,<em class="option">center<sub>y</sub></em> <em class="option">radius<sub>x</sub></em>,<em class="option">radius<sub>y</sub></em> <em class="option">arc<sub>start</sub></em>,<em class="option">arc<sub>stop</sub></em></dt>
612 <dt class="doc"><a id="fill"></a>fill <em class="option">color</em></dt>
614 <dd>Choose from any of these <a href="../www/color.html">colors</a>.
617 <dt class="doc"><a id="fill-opacity"></a>fill-opacity <em class="option">opacity</em></dt>
620 <dd>The opacity ranges from 0.0 (fully transparent) to 1.0 (fully opaque) or as a percentage (e.g. 50%).
623 <dt class="doc"><a id="fill-rule"></a>fill-rule <em class="option">rule</em></dt>
626 <dd>Choose from these rule types:
635 <dt class="doc"><a id="font"></a>font <em class="option">name</em></dt>
639 <dt class="doc"><a id="font-family"></a>font-family <em class="option">family</em></dt>
643 <dt class="doc"><a id="font-size"></a>font-size <em class="option">point-size</em></dt>
647 <dt class="doc"><a id="font-stretch"></a>font-stretch <em class="option">type</em></dt>
649 <dd>Choose from these stretch types:
666 <dt class="doc"><a id="font-style"></a>font-style <em class="option">style</em></dt>
669 <dd>Choose from these styles:
680 <dt class="doc"><a id="font-weight"></a>font-weight <em class="option">weight</em></dt>
682 <dd>Choose from these weights:
701 <dt class="doc"><a id="gradient-units"></a>gradient-units <em class="option">units</em></dt>
703 <dd>Choose from these units:
713 <dt class="doc"><a id="gravity"></a>gravity <em class="option">type</em></dt>
715 <dd>Choose from these gravity types:
731 <dt class="doc"><a id="compose"></a>image <em class="option">compose x,y width,height 'filename'</em></dt>
733 <dd>Choose from these compose operations:
735 <table id="table" cellpadding="2" cellspacing="0" style="width: 93%">
738 <th align="left" style="width: 8%">Method</th>
739 <th align="left">Description</th>
743 <td valign="top">clear</td>
744 <td valign="top">Both the color and the alpha of the destination are cleared. Neither the source nor the destination are used as input.</td>
748 <td valign="top">src</td>
749 <td valign="top">The source is copied to the destination. The destination is not used as input.</td>
753 <td valign="top">dst</td>
754 <td valign="top">The destination is left untouched.</td>
758 <td valign="top"><b>src-over</b></td>
759 <td valign="top">The source is composited over the destination.</td>
763 <td valign="top">dst-over</td>
764 <td valign="top">The destination is composited over the source and the result replaces the destination.</td>
768 <td valign="top">src-in</td>
769 <td valign="top">The part of the source lying inside of the destination replaces the destination.</td>
773 <td valign="top">dst-in</td>
774 <td valign="top">The part of the destination lying inside of the source replaces the destination.</td>
778 <td valign="top">src-out</td>
779 <td valign="top">The part of the source lying outside of the destination replaces the destination.</td>
783 <td valign="top">dst-out</td>
784 <td valign="top">The part of the destination lying outside of the source replaces the destination.</td>
788 <td valign="top">src-atop</td>
789 <td valign="top">The part of the source lying inside of the destination is composited onto the destination.</td>
793 <td valign="top">dst-atop</td>
794 <td valign="top">The part of the destination lying inside of the source is composited over the source and replaces the destination.</td>
798 <td valign="top">multiply</td>
799 <td valign="top">The source is multiplied by the destination and replaces the destination. The resultant color is always at least as dark as either of the two constituent colors. Multiplying any color with black produces black. Multiplying any color with white leaves the original color unchanged.</td>
803 <td valign="top">screen</td>
804 <td valign="top">The source and destination are complemented and then multiplied and then replace the destination. The resultant color is always at least as light as either of the two constituent colors. Screening any color with white produces white. Screening any color with black leaves the original color unchanged.</td>
808 <td valign="top">overlay</td>
809 <td valign="top">Multiplies or screens the colors, dependent on the destination color. Source colors overlay the destination whilst preserving its highlights and shadows. The destination color is not replaced, but is mixed with the source color to reflect the lightness or darkness of the destination.</td>
813 <td valign="top">darken</td>
814 <td valign="top">Selects the darker of the destination and source colors. The destination is replaced with the source when the source is darker, otherwise it is left unchanged.</td>
818 <td valign="top">lighten</td>
819 <td valign="top">Selects the lighter of the destination and source colors. The destination is replaced with the source when the source is lighter, otherwise it is left unchanged.</td>
823 <td valign="top">linear-light</td>
824 <td valign="top">Increase contrast slightly with an impact on the foreground's tonal values.</td>
828 <td valign="top">color-dodge</td>
829 <td valign="top">Brightens the destination color to reflect the source color. Painting with black produces no change.</td>
833 <td valign="top">color-burn</td>
834 <td valign="top">Darkens the destination color to reflect the source color. Painting with white produces no change.</td>
838 <td valign="top">hard-light</td>
839 <td valign="top">Multiplies or screens the colors, dependent on the source color value. If the source color is lighter than 0.5, the destination is lightened as if it were screened. If the source color is darker than 0.5, the destination is darkened, as if it were multiplied. The degree of lightening or darkening is proportional to the difference between the source color and 0.5. If it is equal to 0.5 the destination is unchanged. Painting with pure black or white produces black or white.</td>
843 <td valign="top">soft-light</td>
844 <td valign="top">Darkens or lightens the colors, dependent on the source color value. If the source color is lighter than 0.5, the destination is lightened. If the source color is darker than 0.5, the destination is darkened, as if it were burned in. The degree of darkening or lightening is proportional to the difference between the source color and 0.5. If it is equal to 0.5, the destination is unchanged. Painting with pure black or white produces a distinctly darker or lighter area, but does not result in pure black or white.</td>
848 <td valign="top">plus</td>
849 <td valign="top">The source is added to the destination and replaces the destination. This operator is useful for animating a dissolve between two images.</td>
853 <td valign="top">add</td>
854 <td valign="top">As per 'plus' but transparency data is treated as matte
855 values. As such any transparent areas in either image remain
860 <td valign="top">minus</td>
861 <td valign="top">Subtract the colors in the source image from the
862 destination image. When transparency is involved, Opaque areas will be
863 subtracted from any destination opaque areas. </td>
867 <td valign="top">subtract</td>
868 <td valign="top">Subtract the colors in the source image from the
869 destination image. When transparency is involved transparent areas are
870 subtracted, so only the opaque areas in the source remain opaque in
871 the destination image. </td>
875 <td valign="top">difference</td>
876 <td valign="top">Subtracts the darker of the two constituent colors from the lighter. Painting with white inverts the destination color. Painting with black produces no change.</td>
880 <td valign="top">exclusion</td>
881 <td valign="top">Produces an effect similar to that of 'difference', but appears as lower contrast. Painting with white inverts the destination color. Painting with black produces no change.</td>
885 <td valign="top">xor</td>
886 <td valign="top">The part of the source that lies outside of the destination is combined with the part of the destination that lies outside of the source.</td>
890 <td valign="top">copy-*</td>
891 <td valign="top">Copy the specificed channel in the source image to the
892 same channel in the destination image. If the channel specified in
893 the source image does not exist, (which can only happen for methods,
894 '<kbd>copy-opacity</kbd>' or '<kbd>copy-black</kbd>') then it is
895 assumed that the source image is a special grayscale channel image
896 of the values to be copied. </td>
900 <td valign="top">change-mask</td>
901 <td valign="top">Replace any destination pixel that is the similar to the source images pixel (as defined by the current <a href="#fuzz">-fuzz</a> factor), with transparency. </td>
908 <dt class="doc"><a id="interline-spacing"></a>interline-spacing <em class="option">pixels</em></dt>
912 <dt class="doc"><a id="interword-spacing"></a>interword-spacing <em class="option">pixels</em></dt>
916 <dt class="doc"><a id="kerning"></a>kerning <em class="option">pixels</em></dt>
920 <dt class="doc"><a id="line"></a>line <em class="option">x,y x<sub>1</sub>,y<sub>1</sub></em></dt>
924 <dt class="doc"><a id="matte"></a>matte <em class="option">x,y method</em></dt>
926 <dd>Choose from these methods:
938 <dt class="doc"><a id="offset"></a>offset <em class="option">offset</em></dt>
942 <dt class="doc"><a id="opacity"></a>opacity <em class="option">opacity</em></dt>
944 <dd>Use percent (e.g. 50%).</dd>
946 <dt class="doc"><a id="path"></a>path <em class="option">path</em></dt>
950 <dt class="doc"><a id="point"></a>point <em class="option">x,y</em></dt>
954 <dt class="doc"><a id="polygon"></a>polygon <em class="option">x,y x<sub>1</sub>,y<sub>1</sub>, ..., x<sub>n</sub>,y<sub>n</sub></em></dt>
958 <dt class="doc"><a id="polyline"></a>polyline <em class="option">x,y x<sub>1</sub>,y<sub>1</sub>, ..., x<sub>n</sub>,y<sub>n</sub></em></dt>
962 <dt class="doc"><a id="pop-clip-path"></a>pop clip-path</dt>
966 <dt class="doc"><a id="pop-defs"></a>pop defs</dt>
970 <dt class="doc"><a id="pop-gradient"></a>pop gradient</dt>
974 <dt class="doc"><a id="pop-graphic-context"></a>pop graphic-context</dt>
978 <dt class="doc"><a id="pop-pattern"></a>pop pattern</dt>
982 <dt class="doc"><a id="push"></a>push clip-path <em class="option">name</em></dt>
986 <dt class="doc"><a id="push-defs"></a>push defs</dt>
990 <dt class="doc"><a id="push-gradient-linear"></a>push gradient <em class="option">id linear x,y x<sub>1</sub>,y<sub>1</sub></em></dt>
994 <dt class="doc"><a id="push-gradient-radial"></a>push gradient <em class="option">id radial x<sub>c</sub>,c<sub>y</sub> x<sub>f</sub>,y<sub>f</sub> radius</em></dt>
998 <dt class="doc"><a id="push-graphic-context"></a>push graphic-context</dt>
1002 <dt class="doc"><a id="push-pattern"></a>push pattern <em class="option">id radial x,y width,height</em></dt>
1006 <dt class="doc"><a id="rectangle"></a>rectangle <em class="option">x,y x<sub>1</sub>,y<sub>1</sub></em></dt>
1010 <dt class="doc"><a id="rotate"></a>rotate <em class="option">angle</em></dt>
1014 <dt class="doc"><a id="roundrectangle"></a>roundrectangle <em class="option">x,y x<sub>1</sub>,y<sub>1</sub> width,height</em></dt>
1018 <dt class="doc"><a id="scale"></a>scale <em class="option">x,y</em></dt>
1022 <dt class="doc"><a id="skewX"></a>skewX <em class="option">angle</em></dt>
1026 <dt class="doc"><a id="skewY"></a>skewX <em class="option">angle</em></dt>
1030 <dt class="doc"><a id="stop-color"></a>stop-color <em class="option">color offset</em></dt>
1034 <dt class="doc"><a id="stroke"></a>stroke <em class="option">color</em></dt>
1038 <dt class="doc"><a id="stroke-antialias"></a>stroke-antialias <em class="option">0 • 1</em></dt>
1042 <dt class="doc"><a id="stroke-dasharray"></a>stroke-dasharray <em class="option">none • numeric-list</em></dt>
1046 <dt class="doc"><a id="stroke-dashoffset"></a>stroke-dashoffset <em class="option">offset</em></dt>
1050 <dt class="doc"><a id="stroke-linecap"></a>stroke-linecap <em class="option">type</em></dt>
1053 <dd>Choose from these cap types:
1063 <dt class="doc"><a id="stroke-linejoin"></a>stroke-linejoin <em class="option">type</em></dt>
1065 <dd>Choose from these join types:
1075 <dt class="doc"><a id="stroke-miterlimit"></a>stroke-miterlimit <em class="option">limit</em></dt>
1079 <dt class="doc"><a id="stroke-opacity"></a>stroke-opacity <em class="option">opacity</em></dt>
1081 <dd>The opacity ranges from 0.0 (fully transparent) to 1.0 (fully opaque) or as a percentage (e.g. 50%).
1084 <dt class="doc"><a id="stroke-width"></a>stroke-width <em class="option">width</em></dt>
1088 <dt class="doc"><a id="text"></a>text <em class="option">"text"</em></dt>
1092 <dt class="doc"><a id="text-antialias"></a>text-antialias <em class="option">0 • 1</em></dt>
1096 <dt class="doc"><a id="text-undercolor"></a>text-undercolor <em class="option">color</em></dt>
1100 <dt class="doc"><a id="translate"></a>translate <em class="option">x,y</em></dt>
1104 <dt class="doc"><a id="viewbox"></a>viewbox <em class="option">x,y x<sub>1</sub>,y<sub>1</sub></em></dt>
1116 <div id="linkbar">
\r
1117 <span id="linkbar-west"> </span>
\r
1118 <span id="linkbar-center">
\r
1119 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> •
\r
1120 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
\r
1122 <span id="linkbar-east"> </span>
\r
1124 <div class="footer">
\r
1125 <span id="footer-west">© 1999-2011 ImageMagick Studio LLC</span>
\r
1126 <span id="footer-east"> <a href="http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
\r
1128 <div style="clear: both; margin: 0; width: 100%; "></div>
\r
1129 <script type="text/javascript">
\r
1130 var _gaq = _gaq || [];
\r
1131 _gaq.push(['_setAccount', 'UA-17690367-1']);
\r
1132 _gaq.push(['_trackPageview']);
\r
1135 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
\r
1136 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
\r
1137 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
\r