13ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 2ced48ba144462d17f8efe7e2764d844275b81dd2cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 3ced48ba144462d17f8efe7e2764d844275b81dd2cristy% % 4ced48ba144462d17f8efe7e2764d844275b81dd2cristy% % 5ced48ba144462d17f8efe7e2764d844275b81dd2cristy% % 6ced48ba144462d17f8efe7e2764d844275b81dd2cristy% DDDD RRRR AAA W W % 7ced48ba144462d17f8efe7e2764d844275b81dd2cristy% D D R R A A W W % 8ced48ba144462d17f8efe7e2764d844275b81dd2cristy% D D RRRR AAAAA W W % 9ced48ba144462d17f8efe7e2764d844275b81dd2cristy% D D R R A A W W W % 10ced48ba144462d17f8efe7e2764d844275b81dd2cristy% DDDD R R A A W W % 11ced48ba144462d17f8efe7e2764d844275b81dd2cristy% % 12ced48ba144462d17f8efe7e2764d844275b81dd2cristy% TTTTT EEEEE SSSSS TTTTT % 13ced48ba144462d17f8efe7e2764d844275b81dd2cristy% T E SS T % 14ced48ba144462d17f8efe7e2764d844275b81dd2cristy% T EEE SSS T % 15ced48ba144462d17f8efe7e2764d844275b81dd2cristy% T E SS T % 16ced48ba144462d17f8efe7e2764d844275b81dd2cristy% T EEEEE SSSSS T % 17ced48ba144462d17f8efe7e2764d844275b81dd2cristy% % 18ced48ba144462d17f8efe7e2764d844275b81dd2cristy% % 19ced48ba144462d17f8efe7e2764d844275b81dd2cristy% MagickWand Drawing Tests % 20ced48ba144462d17f8efe7e2764d844275b81dd2cristy% % 21ced48ba144462d17f8efe7e2764d844275b81dd2cristy% Software Design % 22de984cdc3631106b1cbbb8d3972b76a0fc27e8e8cristy% Cristy % 23ced48ba144462d17f8efe7e2764d844275b81dd2cristy% Bob Friesenhahn % 24ced48ba144462d17f8efe7e2764d844275b81dd2cristy% March 2002 % 25ced48ba144462d17f8efe7e2764d844275b81dd2cristy% % 26ced48ba144462d17f8efe7e2764d844275b81dd2cristy% % 277ce65e7125a4e1df1a274ce373c537a9df9c16cdCristy% Copyright 1999-2016 ImageMagick Studio LLC, a non-profit organization % 28ced48ba144462d17f8efe7e2764d844275b81dd2cristy% dedicated to making software imaging solutions freely available. % 29ced48ba144462d17f8efe7e2764d844275b81dd2cristy% % 30ced48ba144462d17f8efe7e2764d844275b81dd2cristy% You may not use this file except in compliance with the License. You may % 31ced48ba144462d17f8efe7e2764d844275b81dd2cristy% obtain a copy of the License at % 32ced48ba144462d17f8efe7e2764d844275b81dd2cristy% % 33ced48ba144462d17f8efe7e2764d844275b81dd2cristy% http://www.imagemagick.org/script/license.php % 34ced48ba144462d17f8efe7e2764d844275b81dd2cristy% % 35ced48ba144462d17f8efe7e2764d844275b81dd2cristy% Unless required by applicable law or agreed to in writing, software % 36ced48ba144462d17f8efe7e2764d844275b81dd2cristy% distributed under the License is distributed on an "AS IS" BASIS, % 37ced48ba144462d17f8efe7e2764d844275b81dd2cristy% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. % 38ced48ba144462d17f8efe7e2764d844275b81dd2cristy% See the License for the specific language governing permissions and % 39ced48ba144462d17f8efe7e2764d844275b81dd2cristy% limitations under the License. % 40ced48ba144462d17f8efe7e2764d844275b81dd2cristy% % 41ced48ba144462d17f8efe7e2764d844275b81dd2cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 42ced48ba144462d17f8efe7e2764d844275b81dd2cristy% 43ced48ba144462d17f8efe7e2764d844275b81dd2cristy% 44ced48ba144462d17f8efe7e2764d844275b81dd2cristy% 45ced48ba144462d17f8efe7e2764d844275b81dd2cristy*/ 46ced48ba144462d17f8efe7e2764d844275b81dd2cristy 473ed852eea50f9d4cd633efb8c2b054b8e33c253cristy#include <stdio.h> 483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy#include <stdlib.h> 494c08aed51c5899665ade97263692328eea4af106cristy#include <MagickWand/MagickWand.h> 503ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 513ed852eea50f9d4cd633efb8c2b054b8e33c253cristy#define ThrowWandException(wand) \ 523ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ \ 533ed852eea50f9d4cd633efb8c2b054b8e33c253cristy char \ 543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy *description; \ 553ed852eea50f9d4cd633efb8c2b054b8e33c253cristy \ 563ed852eea50f9d4cd633efb8c2b054b8e33c253cristy ExceptionType \ 573ed852eea50f9d4cd633efb8c2b054b8e33c253cristy severity; \ 583ed852eea50f9d4cd633efb8c2b054b8e33c253cristy \ 593ed852eea50f9d4cd633efb8c2b054b8e33c253cristy description=MagickGetException(wand,&severity); \ 601e604812fad85bb96f757a2393015ae3d061c39acristy (void) FormatLocaleFile(stderr,"%s %s %lu %s\n",GetMagickModule(), \ 611e604812fad85bb96f757a2393015ae3d061c39acristy description); \ 623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy description=(char *) MagickRelinquishMemory(description); \ 633ed852eea50f9d4cd633efb8c2b054b8e33c253cristy exit(-1); \ 643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 653ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 6630841e6deb8306e8b6103121209a9f7fd76161f5cristystatic MagickBooleanType ScribbleImage(MagickWand *canvas) 673ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 683ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawingWand 693ed852eea50f9d4cd633efb8c2b054b8e33c253cristy *picasso; 703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 713ed852eea50f9d4cd633efb8c2b054b8e33c253cristy PixelWand 723ed852eea50f9d4cd633efb8c2b054b8e33c253cristy *color; 733ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy picasso=NewDrawingWand(); 753ed852eea50f9d4cd633efb8c2b054b8e33c253cristy color=NewPixelWand(); 763ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PushDrawingWand(picasso); 773ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 7832c2aeaecd0abcb91039f999f270ca8ce439abd0cristy DrawSetViewbox(picasso,0,0,(ssize_t) MagickGetImageWidth(canvas), 7932c2aeaecd0abcb91039f999f270ca8ce439abd0cristy (ssize_t) MagickGetImageHeight(canvas)); 803ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawScale(picasso,1.101,1.08); 813ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawTranslate(picasso,-23.69,-22.97); 823ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawRotate(picasso,0); 833ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"#ffffff"); 843ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillColor(picasso,color); 853ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawRectangle(picasso,23.69,22.97,564.6,802.2); 86567d0f7c513242247a52bcc428384154864d1621dirk DrawSetFillOpacity(picasso,1.0); 873ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"none"); 883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillColor(picasso,color); 893ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeColor(picasso,color); 903ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeAntialias(picasso,MagickTrue); 913ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineCap(picasso,RoundCap); 923ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineJoin(picasso,RoundJoin); 933ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawPushDefs(picasso); 943ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 953ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawPushClipPath(picasso,"clip_1"); 963ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 973ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PushDrawingWand(picasso); 983ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 993ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawRectangle(picasso,0,0,595.3,841.9); 1003ed852eea50f9d4cd633efb8c2b054b8e33c253cristy } 1013ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PopDrawingWand(picasso); 1023ed852eea50f9d4cd633efb8c2b054b8e33c253cristy } 1033ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawPopClipPath(picasso); 1043ed852eea50f9d4cd633efb8c2b054b8e33c253cristy } 1053ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawPopDefs(picasso); 1063ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PushDrawingWand(picasso); 1073ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 1083ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) DrawSetClipPath(picasso, "url(#clip_1)"); 1096a917d9720d680799e5ac0165befa086b64b49cbcristy 1103ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PushDrawingWand(picasso); 1113ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 1123ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeAntialias(picasso,MagickTrue); 1133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeWidth(picasso,4.032); 1143ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineCap(picasso,RoundCap); 1153ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineJoin(picasso,RoundJoin); 116f432c635c526259b858c9aad3d409c5c44545686cristy (void) DrawSetStrokeDashArray(picasso,0,(const double *) NULL); 1173ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"#ff0000"); 1183ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeColor(picasso,color); 1193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillRule(picasso,EvenOddRule); 1203ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"#ff00ff"); 1213ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillColor(picasso,color); 1223ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawRectangle(picasso,72,72,144,144); 1233ed852eea50f9d4cd633efb8c2b054b8e33c253cristy } 1243ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PopDrawingWand(picasso); 1253ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PushDrawingWand(picasso); 1263ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 1273ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeAntialias(picasso,MagickTrue); 1283ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeWidth(picasso,9); 1293ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineCap(picasso,RoundCap); 1303ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineJoin(picasso,RoundJoin); 131f432c635c526259b858c9aad3d409c5c44545686cristy (void) DrawSetStrokeDashArray(picasso,0,(const double *) NULL); 1323ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"#00ff00"); 1333ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeColor(picasso,color); 1343ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillRule(picasso,EvenOddRule); 1353ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"#0080ff"); 1363ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillColor(picasso,color); 1373ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawRoundRectangle(picasso,72,216,360,432,9,9); 1383ed852eea50f9d4cd633efb8c2b054b8e33c253cristy } 1393ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PopDrawingWand(picasso); 1403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PushDrawingWand(picasso); 1413ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 1423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy const PointInfo points[37] = 1433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 1443ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 378.1,81.72 }, { 381.1,79.56 }, { 384.3,78.12 }, { 387.6,77.33 }, 1453ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 391.1,77.11 }, { 394.6,77.62 }, { 397.8,78.77 }, { 400.9,80.57 }, 1463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 403.6,83.02 }, { 523.9,216.8 }, { 526.2,219.7 }, { 527.6,223 }, 1473ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 528.4,226.4 }, { 528.6,229.8 }, { 528,233.3 }, { 526.9,236.5 }, 1483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 525.1,239.5 }, { 522.6,242.2 }, { 495.9,266.3 }, { 493,268.5 }, 1493ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 489.7,269.9 }, { 486.4,270.8 }, { 482.9,270.9 }, { 479.5,270.4 }, 1503ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 476.2,269.3 }, { 473.2,267.5 }, { 470.4,265 }, { 350,131.2 }, 1513ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 347.8,128.3 }, { 346.4,125.1 }, { 345.6,121.7 }, {345.4,118.2 }, 1523ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 346,114.8 }, { 347.1,111.5 }, { 348.9,108.5 }, { 351.4,105.8 }, 1533ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 378.1,81.72 } 1543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy }; 1556a917d9720d680799e5ac0165befa086b64b49cbcristy 1563ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeAntialias(picasso,MagickTrue); 1573ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeWidth(picasso,2.016); 1583ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineCap(picasso,RoundCap); 1593ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineJoin(picasso,RoundJoin); 160f432c635c526259b858c9aad3d409c5c44545686cristy (void) DrawSetStrokeDashArray(picasso,0,(const double *) NULL); 1613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"#000080"); 1623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeColor(picasso,color); 1633ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillRule(picasso,EvenOddRule); 1643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"#c2c280"); 1653ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillColor(picasso,color); 1663ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawPolygon(picasso,37,points); 1673ed852eea50f9d4cd633efb8c2b054b8e33c253cristy } 1683ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PopDrawingWand(picasso); 1693ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PushDrawingWand(picasso); 1703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 1713ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeAntialias(picasso,MagickTrue); 1723ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeWidth(picasso,3.024); 1733ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineCap(picasso,RoundCap); 1743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineJoin(picasso,RoundJoin); 175f432c635c526259b858c9aad3d409c5c44545686cristy (void) DrawSetStrokeDashArray(picasso,0,(const double *) NULL); 1763ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"#000080"); 1773ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeColor(picasso,color); 1783ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillRule(picasso,EvenOddRule); 1793ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"#000080"); 1803ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillColor(picasso,color); 1813ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawEllipse(picasso,489.6,424.8,72,129.6,0,360); 1823ed852eea50f9d4cd633efb8c2b054b8e33c253cristy } 1833ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PopDrawingWand(picasso); 1843ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PushDrawingWand(picasso); 1853ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 1863ed852eea50f9d4cd633efb8c2b054b8e33c253cristy const PointInfo points[48] = 1873ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 1883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 213.8,25.13}, { 216.7,24.48 }, {219.8,24.55 }, { 223.1,25.42 }, 1893ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 226.7,27 }, { 230.3,29.3 }, { 234.1,32.26 }, { 237.9,35.86 }, 1903ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 241.8,40.03 }, { 249.7,50.11 }, { 257.4,62.14 }, { 264.8,75.89 }, 1913ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 271.6,91.15 }, { 277.3,106.8 }, { 281.6,121.8 }, { 284.4,135.9 }, 1923ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 285.7,148.5 }, { 285.6,159.6 }, { 284.9,164.3 }, { 283.8,168.5 }, 1933ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 282.5,172.1 }, { 280.7,175 }, { 278.5,177.3 }, { 275.9,178.7 }, 1943ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 273,179.4 }, { 269.9,179.3 }, { 266.6,178.4 }, { 263.1,176.8 }, 1953ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 259.5,174.5}, { 255.7,171.6 }, { 251.9,168 }, { 248,163.8 }, 1963ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 244.1,159 }, { 240.1,153.7 }, { 232.3,141.7 }, { 225,127.9 }, 1973ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 218.2,112.7 }, { 212.5,97.06 }, { 208.2,82.01 }, { 205.4,67.97 }, 1983ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 204,55.3 }, { 204.3,44.35 }, { 204.9,39.6 }, { 205.9,35.42 }, 1993ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 207.4,31.82 }, { 209.2,28.87 }, { 211.3,26.64}, { 213.8,25.13 } 2003ed852eea50f9d4cd633efb8c2b054b8e33c253cristy }; 2016a917d9720d680799e5ac0165befa086b64b49cbcristy 2023ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeAntialias(picasso,MagickTrue); 2033ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeWidth(picasso,3.024); 2043ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineCap(picasso,RoundCap); 2053ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineJoin(picasso,RoundJoin); 206f432c635c526259b858c9aad3d409c5c44545686cristy (void) DrawSetStrokeDashArray(picasso,0,(const double *) NULL); 2073ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"#ff8000"); 2083ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeColor(picasso,color); 2093ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillRule(picasso,EvenOddRule); 2103ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"#00ffff"); 2113ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillColor(picasso,color); 2123ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawPolygon(picasso,48,points); 2133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy } 2143ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PopDrawingWand(picasso); 2153ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PushDrawingWand(picasso); 2163ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 2173ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeAntialias(picasso,MagickTrue); 2183ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeWidth(picasso,12.02); 2193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineCap(picasso,RoundCap); 2203ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineJoin(picasso,RoundJoin); 221f432c635c526259b858c9aad3d409c5c44545686cristy (void) DrawSetStrokeDashArray(picasso,0,(const double *) NULL); 2223ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"#4000c2"); 2233ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeColor(picasso,color); 2243ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"none"); 2253ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillColor(picasso,color); 2263ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawArc(picasso,360,554.4,187.2,237.6,0,90); 2273ed852eea50f9d4cd633efb8c2b054b8e33c253cristy } 2283ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PopDrawingWand(picasso); 2293ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PushDrawingWand(picasso); 2303ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 2313ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeAntialias(picasso,MagickTrue); 2323ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeWidth(picasso,9); 2333ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineCap(picasso,RoundCap); 2343ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineJoin(picasso,RoundJoin); 235f432c635c526259b858c9aad3d409c5c44545686cristy (void) DrawSetStrokeDashArray(picasso,0,(const double *) NULL); 2363ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"#4000c2"); 2373ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeColor(picasso,color); 2383ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillRule(picasso,EvenOddRule); 2393ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"#4000c2"); 2403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillColor(picasso,color); 2413ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawEllipse(picasso,388.8,626.4,100.8,122.4,0,90); 2423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy } 2433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PopDrawingWand(picasso); 2443ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PushDrawingWand(picasso); 2453ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 2463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy const PointInfo points[6] = 2473ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 2483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 180,504 }, { 282.7,578.6 }, { 243.5,699.4 }, { 116.5,699.4 }, 2493ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 77.26,578.6 }, { 180,504 } 2503ed852eea50f9d4cd633efb8c2b054b8e33c253cristy }; 2516a917d9720d680799e5ac0165befa086b64b49cbcristy 2523ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeAntialias(picasso,MagickTrue); 2533ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeWidth(picasso,9); 2543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineCap(picasso,RoundCap); 2553ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineJoin(picasso,RoundJoin); 256f432c635c526259b858c9aad3d409c5c44545686cristy (void) DrawSetStrokeDashArray(picasso,0,(const double *) NULL); 2573ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"#4000c2"); 2583ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeColor(picasso,color); 2593ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillRule(picasso,EvenOddRule); 2603ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"#800000"); 2613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillColor(picasso,color); 2623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawPolygon(picasso,6,points); 2633ed852eea50f9d4cd633efb8c2b054b8e33c253cristy } 2643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PopDrawingWand(picasso); 2653ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PushDrawingWand(picasso); 2663ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 2673ed852eea50f9d4cd633efb8c2b054b8e33c253cristy const PointInfo points[11] = 2683ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 2693ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 180,504 }, { 211.8,568.3 }, { 282.7,578.6 }, { 231.3,628.7 }, 2703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 243.5,699.4 }, { 180,666 }, { 116.5,699.4 }, { 128.7,628.7 }, 2713ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 77.26,578.6 }, { 148.2,568.3 }, { 180,504 } 2723ed852eea50f9d4cd633efb8c2b054b8e33c253cristy }; 2736a917d9720d680799e5ac0165befa086b64b49cbcristy 2743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeAntialias(picasso,MagickTrue); 2753ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeWidth(picasso,9); 2763ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineCap(picasso,RoundCap); 2773ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineJoin(picasso,RoundJoin); 278f432c635c526259b858c9aad3d409c5c44545686cristy (void) DrawSetStrokeDashArray(picasso,0,(const double *) NULL); 2793ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"#4000c2"); 2803ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeColor(picasso,color); 2813ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillRule(picasso,EvenOddRule); 2823ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"#800000"); 2833ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillColor(picasso,color); 2843ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawPolygon(picasso,11,points); 2853ed852eea50f9d4cd633efb8c2b054b8e33c253cristy } 2863ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PopDrawingWand(picasso); 2873ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PushDrawingWand(picasso); 2883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 2893ed852eea50f9d4cd633efb8c2b054b8e33c253cristy const PointInfo points[15] = 2903ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 2913ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 540,288 }, { 561.6,216 }, { 547.2,43.2 }, { 280.8,36 }, 2923ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 302.4,194.4 }, { 331.2,64.8 }, { 504,64.8 }, { 475.2,115.2 }, 2933ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 525.6,93.6 }, { 496.8,158.4 }, { 532.8,136.8 }, { 518.4,180 }, 2943ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 540,172.8 }, { 540,223.2 }, { 540,288 } 2953ed852eea50f9d4cd633efb8c2b054b8e33c253cristy }; 2966a917d9720d680799e5ac0165befa086b64b49cbcristy 2973ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeAntialias(picasso,MagickTrue); 2983ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeWidth(picasso,5.976); 2993ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineCap(picasso,RoundCap); 3003ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineJoin(picasso,RoundJoin); 301f432c635c526259b858c9aad3d409c5c44545686cristy (void) DrawSetStrokeDashArray(picasso,0,(const double *) NULL); 3023ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"#4000c2"); 3033ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeColor(picasso,color); 3043ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillRule(picasso,EvenOddRule); 3053ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"#ffff00"); 3063ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillColor(picasso,color); 3073ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawPolygon(picasso,15,points); 3083ed852eea50f9d4cd633efb8c2b054b8e33c253cristy } 3093ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PopDrawingWand(picasso); 3103ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PushDrawingWand(picasso); 3113ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 3123ed852eea50f9d4cd633efb8c2b054b8e33c253cristy const PointInfo points[7] = 3133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 3143ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 57.6,640.8 }, { 57.6,784.8 }, { 194.4,799.2 }, { 259.2,777.6 }, 3153ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 151.2,756 }, { 86.4,748.8 }, { 57.6,640.8 } 3163ed852eea50f9d4cd633efb8c2b054b8e33c253cristy }; 3176a917d9720d680799e5ac0165befa086b64b49cbcristy 3183ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeAntialias(picasso,MagickTrue); 3193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeWidth(picasso,5.976); 3203ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineCap(picasso,RoundCap); 3213ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineJoin(picasso,RoundJoin); 322f432c635c526259b858c9aad3d409c5c44545686cristy (void) DrawSetStrokeDashArray(picasso,0,(const double *) NULL); 3233ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"#4000c2"); 3243ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeColor(picasso,color); 3253ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillRule(picasso,EvenOddRule); 3263ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"#ffff00"); 3273ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillColor(picasso,color); 3283ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawPolygon(picasso,7,points); 3293ed852eea50f9d4cd633efb8c2b054b8e33c253cristy } 3303ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PopDrawingWand(picasso); 3313ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PushDrawingWand(picasso); 3323ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 3333ed852eea50f9d4cd633efb8c2b054b8e33c253cristy const PointInfo points[193] = 3343ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 3353ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 27.86,565.3 }, { 29.66,550.8 }, { 31.97,538.1 }, { 34.85,527.1 }, 3363ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 38.09,517.7 }, { 41.83,509.8 }, { 45.86,503.1 }, { 50.33,497.6 }, 3373ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 55.08,493.2 }, { 60.19,489.8 }, { 65.45,487.3 }, { 70.92,485.4 }, 3383ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 76.61,484.2 }, { 88.42,483 }, { 100.4,482.9 }, { 108.4,482.2 }, 3393ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 119.8,480.3 }, { 150.8,474.1 }, { 189.4,466.6 }, { 210.3,463 }, 3403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 231.5,459.9 }, { 252.4,457.8 }, { 272.7,456.6 }, { 291.8,456.9 }, 3413ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 300.7,457.7 }, { 309.1,458.9 }, { 316.9,460.6 }, { 324.1,462.8 }, 3423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 330.7,465.6 }, { 336.4,469 }, { 341.3,473 }, { 345.3,477.7 }, 3433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 348.4,483.1 }, { 350.4,489.2}, { 352.4,495.4 }, { 355.2,500.9 }, 3443ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 358.8,505.8 }, { 363,510 }, { 367.8,513.6 }, { 373,516.8 }, 3453ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 378.6,519.6 }, { 384.3,521.8 }, { 396.4,525.4 }, { 408.2,527.9 }, 3463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 428,531.2 }, { 434.6,532.9 }, { 436.7,533.8 }, { 437.8,534.9 }, 3473ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 437.8,536.2 }, { 436.8,537.8 }, { 434.5,539.6 }, { 430.9,541.8 }, 3483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 419.3,547.6 }, { 401.3,555.2 }, { 342.4,577.9 }, {325.2,584.9 }, 3496a917d9720d680799e5ac0165befa086b64b49cbcristy { 311,591.3 }, { 300,597.3 }, { 291.6,602.8 }, { 285.8,607.8 }, 3503ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 282.3,612.3 }, { 281.4,614.4 }, { 280.9,616.2 }, { 281.2,619.6 }, 3513ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 282.1,621.2 }, { 283.3,622.6 }, { 286.8,624.9 }, { 291.5,626.6 }, 3523ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 297.1,627.8 }, { 303.6,628.3 }, { 310.5,628.3 }, { 317.9,627.6 }, 3533ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 325.2,626.3 }, { 332.6,624.3 }, { 339.5,621.7 }, { 345.9,618.4 }, 3543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 351.4,614.4 }, { 353.9,612.2 }, { 356,609.8 }, { 357.9,607.1 }, 3553ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 359.4,604.3 }, { 360.6,601.3 }, { 361.4,598.2 }, { 361.7,594.9 }, 3563ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 361.7,591.3 }, { 361.2,587.7 }, { 360.1,583.7 }, { 358.6,579.7 }, 3573ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 356.4,575.4 }, { 353.7,570.9 }, { 350.4,566.2 }, { 346.4,561.3 }, 3583ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 341.8,556.2 }, { 336.5,550.9 }, { 330.6,545.5 }, { 323.8,539.8 }, 3593ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 316.2,533.9 }, { 298.7,521.5 }, { 277.8,508.2 }, { 256.1,495.5 }, 3603ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 236,484.5 }, { 217.7,475.1 }, { 200.8,467.1 }, { 185.6,460.7 }, 3613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 171.9,455.5 }, { 159.6,451.6 }, { 148.6,448.8 }, { 139,447 }, 3623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 130.5,446.2 }, { 123.3,446.2 }, { 117.1,446.9 }, { 112,448.3 }, 3633ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 107.9,450.2 }, { 104.8,452.5 }, { 102.5,455.2 }, { 101,458.1 }, 3643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 100.2,461.2 }, { 100.2,464.3 }, { 100.7,467.4 }, { 101.8,470.3 }, 3653ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 103.4,473 }, { 105.4,475.3 }, { 107.8,477.1 }, { 110.5,478.4 }, 3663ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 113.4,479.1 }, { 116.5,478.9 }, { 119.7,478 }, { 123,476.2 }, 3673ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 126.4,473.3 }, { 129.6,469.2 }, { 132.7,463.9 }, { 135.2,458.4 }, 3683ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 136.6,453.7 }, { 137,449.9 }, { 136.6,446.8 }, { 135.4,444.5 }, 3693ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 133.3,442.9 }, { 130.8,441.9 }, { 127.5,441.4 }, { 123.9,441.6 }, 3703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 119.8,442.3 }, { 110.7,445.1 }, { 101.1,449.5 }, { 91.37,455.2 }, 3713ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 82.37,461.9 }, { 74.66,469.2 }, { 71.57,473 }, { 68.98,476.8 }, 3723ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 67.03,480.7 }, { 65.81,484.4 }, { 65.45,488.2 }, { 65.95,491.7 }, 3733ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 67.46,495.1 }, { 69.98,498.3 }, { 73.66,501.3 }, { 78.55,503.9 }, 3743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 84.82,506.3 }, { 92.38,508.2 }, { 107.1,511.6 }, { 118.2,514.8 }, 3753ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 125.9,517.8 }, { 130.7,520.4 }, { 132.1,521.7 }, { 132.8,522.9 }, 3763ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 133,524.2 }, { 132.6,525.3 }, { 131.8,526.5 }, { 130.5,527.5 }, 3773ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 126.6,529.6 }, { 121.5,531.7 }, { 115.3,533.7 }, { 101.4,537.6 }, 3783ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 87.55,541.8 }, { 81.36,544 }, { 76.25,546.3 }, { 71.64,549.5 }, 3793ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 66.89,554.1 }, { 62.14,559.8 }, { 57.38,566.1 }, { 48.17,579.6 }, 3803ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 39.96,591.4 }, { 36.43,595.9 }, { 34.78,597.6 }, { 33.26,598.8 }, 3813ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 31.9,599.6 }, { 30.67,599.9 }, { 29.59,599.7 }, { 28.66,598.8 }, 3823ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 27.86,597.4 }, { 27.29,595.2 }, { 26.64,588.7 }, { 26.86,578.8 }, 3833ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 27.86,565.3 } 3843ed852eea50f9d4cd633efb8c2b054b8e33c253cristy }; 3856a917d9720d680799e5ac0165befa086b64b49cbcristy 3863ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeAntialias(picasso,MagickTrue); 3873ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeWidth(picasso,5.904); 3883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineCap(picasso,RoundCap); 3893ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeLineJoin(picasso,RoundJoin); 390f432c635c526259b858c9aad3d409c5c44545686cristy (void) DrawSetStrokeDashArray(picasso,0,(const double *) NULL); 3913ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"#4000c2"); 3923ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetStrokeColor(picasso,color); 3933ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillRule(picasso,EvenOddRule); 3943ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PixelSetColor(color,"#ffff00"); 3953ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawSetFillColor(picasso,color); 3963ed852eea50f9d4cd633efb8c2b054b8e33c253cristy DrawPolygon(picasso,193,points); 3973ed852eea50f9d4cd633efb8c2b054b8e33c253cristy } 3983ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PopDrawingWand(picasso); 3993ed852eea50f9d4cd633efb8c2b054b8e33c253cristy } 4003ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PopDrawingWand(picasso); 4013ed852eea50f9d4cd633efb8c2b054b8e33c253cristy } 4023ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) PopDrawingWand(picasso); 4033ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) MagickDrawImage(canvas,picasso); 4043ed852eea50f9d4cd633efb8c2b054b8e33c253cristy color=DestroyPixelWand(color); 4053ed852eea50f9d4cd633efb8c2b054b8e33c253cristy picasso=DestroyDrawingWand(picasso); 406ced48ba144462d17f8efe7e2764d844275b81dd2cristy return(MagickTrue); 4073ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 4083ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 409ced48ba144462d17f8efe7e2764d844275b81dd2cristyint main(int argc,char **argv) 4103ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 411ced48ba144462d17f8efe7e2764d844275b81dd2cristy char 412151b66dffc9e3c2e8c4f8cdaca37ff987ca0f497cristy filename[MagickPathExtent]; 4133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 414ced48ba144462d17f8efe7e2764d844275b81dd2cristy MagickBooleanType 415ced48ba144462d17f8efe7e2764d844275b81dd2cristy status; 4163ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 417ced48ba144462d17f8efe7e2764d844275b81dd2cristy MagickWand 418ced48ba144462d17f8efe7e2764d844275b81dd2cristy *canvas; 4193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 420ced48ba144462d17f8efe7e2764d844275b81dd2cristy if (argc != 2) 421ced48ba144462d17f8efe7e2764d844275b81dd2cristy { 422ced48ba144462d17f8efe7e2764d844275b81dd2cristy (void) printf ("Usage: %s filename\n",argv[0]); 423ced48ba144462d17f8efe7e2764d844275b81dd2cristy exit(1); 424ced48ba144462d17f8efe7e2764d844275b81dd2cristy } 425151b66dffc9e3c2e8c4f8cdaca37ff987ca0f497cristy (void) CopyMagickString(filename,argv[1],MagickPathExtent); 4263ed852eea50f9d4cd633efb8c2b054b8e33c253cristy /* 427ced48ba144462d17f8efe7e2764d844275b81dd2cristy Create canvas image. 428ced48ba144462d17f8efe7e2764d844275b81dd2cristy */ 4293ed852eea50f9d4cd633efb8c2b054b8e33c253cristy MagickWandGenesis(); 4303ed852eea50f9d4cd633efb8c2b054b8e33c253cristy canvas=NewMagickWand(); 431ced48ba144462d17f8efe7e2764d844275b81dd2cristy status=MagickSetSize(canvas,596,842); 432ced48ba144462d17f8efe7e2764d844275b81dd2cristy if (status == MagickFalse) 433ced48ba144462d17f8efe7e2764d844275b81dd2cristy ThrowWandException(canvas); 434ced48ba144462d17f8efe7e2764d844275b81dd2cristy status=MagickReadImage(canvas,"xc:white"); 4353ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (status == MagickFalse) 4363ed852eea50f9d4cd633efb8c2b054b8e33c253cristy ThrowWandException(canvas); 4373ed852eea50f9d4cd633efb8c2b054b8e33c253cristy /* 438ced48ba144462d17f8efe7e2764d844275b81dd2cristy Scribble on image. 439ced48ba144462d17f8efe7e2764d844275b81dd2cristy */ 440ced48ba144462d17f8efe7e2764d844275b81dd2cristy status=ScribbleImage(canvas); 441ced48ba144462d17f8efe7e2764d844275b81dd2cristy if (status == MagickFalse) 442ced48ba144462d17f8efe7e2764d844275b81dd2cristy ThrowWandException(canvas); 4433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy /* 4444a16cd57f82c4fef767eec22bc00e98a065242f0cristy Set pixel depth to 8. 4454a16cd57f82c4fef767eec22bc00e98a065242f0cristy */ 4464a16cd57f82c4fef767eec22bc00e98a065242f0cristy status=MagickSetImageDepth(canvas,8); 4474a16cd57f82c4fef767eec22bc00e98a065242f0cristy if (status == MagickFalse) 4484a16cd57f82c4fef767eec22bc00e98a065242f0cristy ThrowWandException(canvas); 4494a16cd57f82c4fef767eec22bc00e98a065242f0cristy /* 450778ca773cf6e3fcd3275566cd1a9ece52b9a2383cristy Set output as RLE compressed. 4514a16cd57f82c4fef767eec22bc00e98a065242f0cristy */ 452778ca773cf6e3fcd3275566cd1a9ece52b9a2383cristy status=MagickSetImageCompression(canvas,RLECompression); 4534a16cd57f82c4fef767eec22bc00e98a065242f0cristy if (status == MagickFalse) 4544a16cd57f82c4fef767eec22bc00e98a065242f0cristy ThrowWandException(canvas); 4554a16cd57f82c4fef767eec22bc00e98a065242f0cristy /* 456ced48ba144462d17f8efe7e2764d844275b81dd2cristy Save image to file. 457ced48ba144462d17f8efe7e2764d844275b81dd2cristy */ 458ced48ba144462d17f8efe7e2764d844275b81dd2cristy status=MagickWriteImage(canvas,filename); 459ced48ba144462d17f8efe7e2764d844275b81dd2cristy if (status == MagickFalse) 460ced48ba144462d17f8efe7e2764d844275b81dd2cristy ThrowWandException(canvas); 461ced48ba144462d17f8efe7e2764d844275b81dd2cristy canvas=DestroyMagickWand(canvas); 4623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy MagickWandTerminus(); 463ced48ba144462d17f8efe7e2764d844275b81dd2cristy return(0); 4643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 465