Lines Matching refs:wand
60 #define CurrentContext (wand->graphic_context[wand->index])
63 wand->exception,GetMagickModule(),severity,tag,"`%s'",reason);
170 static int MVGPrintf(DrawingWand *wand,const char *format,...) in MVGPrintf() argument
175 if (wand->debug != MagickFalse) in MVGPrintf()
177 assert(wand != (DrawingWand *) NULL); in MVGPrintf()
178 assert(wand->signature == MagickWandSignature); in MVGPrintf()
180 if (wand->mvg == (char *) NULL) in MVGPrintf()
182 wand->mvg=(char *) AcquireQuantumMemory(extent,sizeof(*wand->mvg)); in MVGPrintf()
183 if (wand->mvg == (char *) NULL) in MVGPrintf()
186 wand->name); in MVGPrintf()
189 wand->mvg_alloc=extent; in MVGPrintf()
190 wand->mvg_length=0; in MVGPrintf()
192 if (wand->mvg_alloc < (wand->mvg_length+10*MagickPathExtent)) in MVGPrintf()
194 extent+=wand->mvg_alloc; in MVGPrintf()
195 wand->mvg=(char *) ResizeQuantumMemory(wand->mvg,extent, in MVGPrintf()
196 sizeof(*wand->mvg)); in MVGPrintf()
197 if (wand->mvg == (char *) NULL) in MVGPrintf()
200 wand->name); in MVGPrintf()
203 wand->mvg_alloc=extent; in MVGPrintf()
215 while (wand->mvg_width < wand->indent_depth) in MVGPrintf()
217 wand->mvg[wand->mvg_length]=' '; in MVGPrintf()
218 wand->mvg_length++; in MVGPrintf()
219 wand->mvg_width++; in MVGPrintf()
221 wand->mvg[wand->mvg_length]='\0'; in MVGPrintf()
223 offset=(ssize_t) wand->mvg_alloc-wand->mvg_length-1; in MVGPrintf()
228 count=vsnprintf(wand->mvg+wand->mvg_length,(size_t) offset,format,argp); in MVGPrintf()
230 count=vsprintf(wand->mvg+wand->mvg_length,format,argp); in MVGPrintf()
238 wand->mvg_length+=count; in MVGPrintf()
239 wand->mvg_width+=count; in MVGPrintf()
241 wand->mvg[wand->mvg_length]='\0'; in MVGPrintf()
242 if ((wand->mvg_length > 1) && (wand->mvg[wand->mvg_length-1] == '\n')) in MVGPrintf()
243 wand->mvg_width=0; in MVGPrintf()
244 assert((wand->mvg_length+1) < wand->mvg_alloc); in MVGPrintf()
249 static int MVGAutoWrapPrintf(DrawingWand *wand,const char *format,...) in MVGAutoWrapPrintf() argument
272 if (((wand->mvg_width + count) > 78) && (buffer[count-1] != '\n')) in MVGAutoWrapPrintf()
273 (void) MVGPrintf(wand, "\n"); in MVGAutoWrapPrintf()
274 (void) MVGPrintf(wand,"%s",buffer); in MVGAutoWrapPrintf()
279 static void MVGAppendColor(DrawingWand *wand,const PixelInfo *packet) in MVGAppendColor() argument
283 (void) MVGPrintf(wand,"none"); in MVGAppendColor()
292 GetPixelInfo(wand->image,&pixel); in MVGAppendColor()
301 (void) MVGPrintf(wand,"%s",tuple); in MVGAppendColor()
305 static void MVGAppendPointsCommand(DrawingWand *wand,const char *command, in MVGAppendPointsCommand() argument
314 (void) MVGPrintf(wand,"%s",command); in MVGAppendPointsCommand()
317 (void) MVGAutoWrapPrintf(wand," %.20g %.20g",coordinate->x,coordinate->y); in MVGAppendPointsCommand()
320 (void) MVGPrintf(wand, "\n"); in MVGAppendPointsCommand()
323 static void AdjustAffine(DrawingWand *wand,const AffineMatrix *affine) in AdjustAffine() argument
325 assert(wand != (DrawingWand *) NULL); in AdjustAffine()
326 assert(wand->signature == MagickWandSignature); in AdjustAffine()
327 if (wand->debug != MagickFalse) in AdjustAffine()
328 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in AdjustAffine()
376 *wand; in AcquireDrawingWand() local
378 wand=NewDrawingWand(); in AcquireDrawingWand()
386 wand->image=DestroyImage(wand->image); in AcquireDrawingWand()
387 wand->destroy=MagickFalse; in AcquireDrawingWand()
389 wand->image=image; in AcquireDrawingWand()
390 return(wand); in AcquireDrawingWand()
415 WandExport void ClearDrawingWand(DrawingWand *wand) in ClearDrawingWand() argument
417 assert(wand != (DrawingWand *) NULL); in ClearDrawingWand()
418 assert(wand->signature == MagickWandSignature); in ClearDrawingWand()
419 if (wand->debug != MagickFalse) in ClearDrawingWand()
420 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in ClearDrawingWand()
421 for ( ; wand->index > 0; wand->index--) in ClearDrawingWand()
424 wand->graphic_context=(DrawInfo **) RelinquishMagickMemory( in ClearDrawingWand()
425 wand->graphic_context); in ClearDrawingWand()
426 if (wand->pattern_id != (char *) NULL) in ClearDrawingWand()
427 wand->pattern_id=DestroyString(wand->pattern_id); in ClearDrawingWand()
428 wand->mvg=DestroyString(wand->mvg); in ClearDrawingWand()
429 if ((wand->destroy != MagickFalse) && (wand->image != (Image *) NULL)) in ClearDrawingWand()
430 wand->image=DestroyImage(wand->image); in ClearDrawingWand()
432 wand->image=(Image *) NULL; in ClearDrawingWand()
433 wand->mvg=(char *) NULL; in ClearDrawingWand()
434 wand->mvg_alloc=0; in ClearDrawingWand()
435 wand->mvg_length=0; in ClearDrawingWand()
436 wand->mvg_width=0; in ClearDrawingWand()
437 wand->pattern_id=(char *) NULL; in ClearDrawingWand()
438 wand->pattern_offset=0; in ClearDrawingWand()
439 wand->pattern_bounds.x=0; in ClearDrawingWand()
440 wand->pattern_bounds.y=0; in ClearDrawingWand()
441 wand->pattern_bounds.width=0; in ClearDrawingWand()
442 wand->pattern_bounds.height=0; in ClearDrawingWand()
443 wand->index=0; in ClearDrawingWand()
444 wand->graphic_context=(DrawInfo **) AcquireMagickMemory( in ClearDrawingWand()
445 sizeof(*wand->graphic_context)); in ClearDrawingWand()
446 if (wand->graphic_context == (DrawInfo **) NULL) in ClearDrawingWand()
449 wand->name); in ClearDrawingWand()
453 wand->filter_off=MagickTrue; in ClearDrawingWand()
454 wand->indent_depth=0; in ClearDrawingWand()
455 wand->path_operation=PathDefaultOperation; in ClearDrawingWand()
456 wand->path_mode=DefaultPathMode; in ClearDrawingWand()
457 wand->image=AcquireImage((const ImageInfo *) NULL,wand->exception); in ClearDrawingWand()
458 ClearMagickException(wand->exception); in ClearDrawingWand()
459 wand->destroy=MagickTrue; in ClearDrawingWand()
460 wand->debug=IsEventLogging(); in ClearDrawingWand()
485 WandExport DrawingWand *CloneDrawingWand(const DrawingWand *wand) in CloneDrawingWand() argument
493 assert(wand != (DrawingWand *) NULL); in CloneDrawingWand()
494 assert(wand->signature == MagickWandSignature); in CloneDrawingWand()
495 if (wand->debug != MagickFalse) in CloneDrawingWand()
496 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in CloneDrawingWand()
506 InheritException(clone_wand->exception,wand->exception); in CloneDrawingWand()
507 clone_wand->mvg=AcquireString(wand->mvg); in CloneDrawingWand()
509 clone_wand->mvg_alloc=wand->mvg_length+1; in CloneDrawingWand()
510 clone_wand->mvg_width=wand->mvg_width; in CloneDrawingWand()
511 clone_wand->pattern_id=AcquireString(wand->pattern_id); in CloneDrawingWand()
512 clone_wand->pattern_offset=wand->pattern_offset; in CloneDrawingWand()
513 clone_wand->pattern_bounds=wand->pattern_bounds; in CloneDrawingWand()
514 clone_wand->index=wand->index; in CloneDrawingWand()
516 wand->index+1UL,sizeof(*wand->graphic_context)); in CloneDrawingWand()
520 for (i=0; i <= (ssize_t) wand->index; i++) in CloneDrawingWand()
522 wand->graphic_context[i]); in CloneDrawingWand()
523 clone_wand->filter_off=wand->filter_off; in CloneDrawingWand()
524 clone_wand->indent_depth=wand->indent_depth; in CloneDrawingWand()
525 clone_wand->path_operation=wand->path_operation; in CloneDrawingWand()
526 clone_wand->path_mode=wand->path_mode; in CloneDrawingWand()
527 clone_wand->image=wand->image; in CloneDrawingWand()
528 if (wand->image != (Image *) NULL) in CloneDrawingWand()
529 clone_wand->image=CloneImage(wand->image,0,0,MagickTrue, in CloneDrawingWand()
563 WandExport DrawingWand *DestroyDrawingWand(DrawingWand *wand) in DestroyDrawingWand() argument
565 assert(wand != (DrawingWand *) NULL); in DestroyDrawingWand()
566 assert(wand->signature == MagickWandSignature); in DestroyDrawingWand()
567 if (wand->debug != MagickFalse) in DestroyDrawingWand()
568 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DestroyDrawingWand()
569 for ( ; wand->index > 0; wand->index--) in DestroyDrawingWand()
572 wand->graphic_context=(DrawInfo **) RelinquishMagickMemory( in DestroyDrawingWand()
573 wand->graphic_context); in DestroyDrawingWand()
574 if (wand->pattern_id != (char *) NULL) in DestroyDrawingWand()
575 wand->pattern_id=DestroyString(wand->pattern_id); in DestroyDrawingWand()
576 wand->mvg=DestroyString(wand->mvg); in DestroyDrawingWand()
577 if ((wand->destroy != MagickFalse) && (wand->image != (Image *) NULL)) in DestroyDrawingWand()
578 wand->image=DestroyImage(wand->image); in DestroyDrawingWand()
579 wand->image=(Image *) NULL; in DestroyDrawingWand()
580 wand->exception=DestroyExceptionInfo(wand->exception); in DestroyDrawingWand()
581 wand->signature=(~MagickWandSignature); in DestroyDrawingWand()
582 RelinquishWandId(wand->id); in DestroyDrawingWand()
583 wand=(DrawingWand *) RelinquishMagickMemory(wand); in DestroyDrawingWand()
584 return(wand); in DestroyDrawingWand()
613 WandExport void DrawAffine(DrawingWand *wand,const AffineMatrix *affine) in DrawAffine() argument
615 assert(wand != (DrawingWand *) NULL); in DrawAffine()
616 assert(wand->signature == MagickWandSignature); in DrawAffine()
617 if (wand->debug != MagickFalse) in DrawAffine()
618 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawAffine()
620 AdjustAffine(wand,affine); in DrawAffine()
621 (void) MVGPrintf(wand,"affine %.20g %.20g %.20g %.20g %.20g %.20g\n", in DrawAffine()
662 WandExport void DrawAlpha(DrawingWand *wand,const double x,const double y, in DrawAlpha() argument
665 assert(wand != (DrawingWand *) NULL); in DrawAlpha()
666 assert(wand->signature == MagickWandSignature); in DrawAlpha()
667 if (wand->debug != MagickFalse) in DrawAlpha()
668 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawAlpha()
669 (void) MVGPrintf(wand,"alpha %.20g %.20g '%s'\n",x,y,CommandOptionToMnemonic( in DrawAlpha()
702 WandExport void DrawAnnotation(DrawingWand *wand,const double x,const double y, in DrawAnnotation() argument
708 assert(wand != (DrawingWand *) NULL); in DrawAnnotation()
709 assert(wand->signature == MagickWandSignature); in DrawAnnotation()
710 if (wand->debug != MagickFalse) in DrawAnnotation()
711 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawAnnotation()
716 (void) MVGPrintf(wand,"text %.20g %.20g '%s'\n",x,y,escaped_text); in DrawAnnotation()
757 WandExport void DrawArc(DrawingWand *wand,const double sx,const double sy, in DrawArc() argument
760 assert(wand != (DrawingWand *) NULL); in DrawArc()
761 assert(wand->signature == MagickWandSignature); in DrawArc()
762 if (wand->debug != MagickFalse) in DrawArc()
763 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawArc()
764 (void) MVGPrintf(wand,"arc %.20g %.20g %.20g %.20g %.20g %.20g\n",sx,sy,ex, in DrawArc()
795 WandExport void DrawBezier(DrawingWand *wand, in DrawBezier() argument
798 assert(wand != (DrawingWand *) NULL); in DrawBezier()
799 assert(wand->signature == MagickWandSignature); in DrawBezier()
800 if (wand->debug != MagickFalse) in DrawBezier()
801 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawBezier()
803 MVGAppendPointsCommand(wand,"bezier",number_coordinates,coordinates); in DrawBezier()
837 WandExport void DrawCircle(DrawingWand *wand,const double ox,const double oy, in DrawCircle() argument
840 assert(wand != (DrawingWand *) NULL); in DrawCircle()
841 assert(wand->signature == MagickWandSignature); in DrawCircle()
842 if (wand->debug != MagickFalse) in DrawCircle()
843 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawCircle()
844 (void) MVGPrintf(wand,"circle %.20g %.20g %.20g %.20g\n",ox,oy,px,py); in DrawCircle()
869 WandExport MagickBooleanType DrawClearException(DrawingWand *wand) in DrawClearException() argument
871 assert(wand != (DrawingWand *) NULL); in DrawClearException()
872 assert(wand->signature == MagickWandSignature); in DrawClearException()
873 if (wand->debug != MagickFalse) in DrawClearException()
874 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawClearException()
875 ClearMagickException(wand->exception); in DrawClearException()
901 WandExport ExceptionInfo *DrawCloneExceptionInfo(const DrawingWand *wand) in DrawCloneExceptionInfo() argument
903 assert(wand != (DrawingWand *) NULL); in DrawCloneExceptionInfo()
904 assert(wand->signature == MagickWandSignature); in DrawCloneExceptionInfo()
905 if (wand->exception == (ExceptionInfo*) NULL) in DrawCloneExceptionInfo()
907 return CloneExceptionInfo(wand->exception); in DrawCloneExceptionInfo()
946 WandExport void DrawColor(DrawingWand *wand, const double x, const double y, in DrawColor() argument
949 assert(wand != (DrawingWand *)NULL); in DrawColor()
950 assert(wand->signature == MagickWandSignature); in DrawColor()
951 if (wand->debug != MagickFalse) in DrawColor()
952 (void) LogMagickEvent(WandEvent, GetMagickModule(), "%s", wand->name); in DrawColor()
953 (void) MVGPrintf(wand, "color %.20g %.20g '%s'\n",x,y,CommandOptionToMnemonic( in DrawColor()
998 WandExport MagickBooleanType DrawComposite(DrawingWand *wand, in DrawComposite() argument
1029 assert(wand != (DrawingWand *) NULL); in DrawComposite()
1030 assert(wand->signature == MagickWandSignature); in DrawComposite()
1031 if (wand->debug != MagickFalse) in DrawComposite()
1032 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawComposite()
1037 clone_image=CloneImage(image,0,0,MagickTrue,wand->exception); in DrawComposite()
1044 wand->exception); in DrawComposite()
1060 wand->name); in DrawComposite()
1065 (void) MVGPrintf(wand,"image %s %.20g %.20g %.20g %.20g 'data:%s;base64,\n", in DrawComposite()
1070 (void) MVGPrintf(wand,"%.76s",p); in DrawComposite()
1073 (void) MVGPrintf(wand,"\n"); in DrawComposite()
1075 (void) MVGPrintf(wand,"'\n"); in DrawComposite()
1105 WandExport void DrawComment(DrawingWand *wand,const char *comment) in DrawComment() argument
1107 (void) MVGPrintf(wand,"#%s\n",comment); in DrawComment()
1145 WandExport void DrawEllipse(DrawingWand *wand,const double ox,const double oy, in DrawEllipse() argument
1148 assert(wand != (DrawingWand *) NULL); in DrawEllipse()
1149 assert(wand->signature == MagickWandSignature); in DrawEllipse()
1150 if (wand->debug != MagickFalse) in DrawEllipse()
1151 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawEllipse()
1152 (void) MVGPrintf(wand,"ellipse %.20g %.20g %.20g %.20g %.20g %.20g\n",ox,oy, in DrawEllipse()
1182 WandExport void DrawGetBorderColor(const DrawingWand *wand, in DrawGetBorderColor() argument
1185 assert(wand != (const DrawingWand *) NULL); in DrawGetBorderColor()
1186 assert(wand->signature == MagickWandSignature); in DrawGetBorderColor()
1188 if (wand->debug != MagickFalse) in DrawGetBorderColor()
1189 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetBorderColor()
1216 WandExport char *DrawGetClipPath(const DrawingWand *wand) in DrawGetClipPath() argument
1218 assert(wand != (const DrawingWand *) NULL); in DrawGetClipPath()
1219 assert(wand->signature == MagickWandSignature); in DrawGetClipPath()
1220 if (wand->debug != MagickFalse) in DrawGetClipPath()
1221 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetClipPath()
1250 WandExport FillRule DrawGetClipRule(const DrawingWand *wand) in DrawGetClipRule() argument
1252 assert(wand != (const DrawingWand *) NULL); in DrawGetClipRule()
1253 assert(wand->signature == MagickWandSignature); in DrawGetClipRule()
1254 if (wand->debug != MagickFalse) in DrawGetClipRule()
1255 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetClipRule()
1281 WandExport ClipPathUnits DrawGetClipUnits(const DrawingWand *wand) in DrawGetClipUnits() argument
1283 assert(wand != (const DrawingWand *) NULL); in DrawGetClipUnits()
1284 assert(wand->signature == MagickWandSignature); in DrawGetClipUnits()
1285 if (wand->debug != MagickFalse) in DrawGetClipUnits()
1286 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetClipUnits()
1313 WandExport char *DrawGetDensity(const DrawingWand *wand) in DrawGetDensity() argument
1315 assert(wand != (const DrawingWand *) NULL); in DrawGetDensity()
1316 assert(wand->signature == MagickWandSignature); in DrawGetDensity()
1317 if (wand->debug != MagickFalse) in DrawGetDensity()
1318 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetDensity()
1350 WandExport char *DrawGetException(const DrawingWand *wand, in DrawGetException() argument
1356 assert(wand != (const DrawingWand *) NULL); in DrawGetException()
1357 assert(wand->signature == MagickWandSignature); in DrawGetException()
1358 if (wand->debug != MagickFalse) in DrawGetException()
1359 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetException()
1361 *severity=wand->exception->severity; in DrawGetException()
1366 wand->name); in DrawGetException()
1368 if (wand->exception->reason != (char *) NULL) in DrawGetException()
1370 wand->exception->severity,wand->exception->reason), in DrawGetException()
1372 if (wand->exception->description != (char *) NULL) in DrawGetException()
1376 wand->exception->severity,wand->exception->description), in DrawGetException()
1406 WandExport ExceptionType DrawGetExceptionType(const DrawingWand *wand) in DrawGetExceptionType() argument
1408 assert(wand != (const DrawingWand *) NULL); in DrawGetExceptionType()
1409 assert(wand->signature == MagickWandSignature); in DrawGetExceptionType()
1410 if (wand->debug != MagickFalse) in DrawGetExceptionType()
1411 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetExceptionType()
1412 return(wand->exception->severity); in DrawGetExceptionType()
1440 WandExport void DrawGetFillColor(const DrawingWand *wand,PixelWand *fill_color) in DrawGetFillColor() argument
1442 assert(wand != (const DrawingWand *) NULL); in DrawGetFillColor()
1443 assert(wand->signature == MagickWandSignature); in DrawGetFillColor()
1445 if (wand->debug != MagickFalse) in DrawGetFillColor()
1446 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetFillColor()
1473 WandExport double DrawGetFillOpacity(const DrawingWand *wand) in DrawGetFillOpacity() argument
1478 assert(wand != (const DrawingWand *) NULL); in DrawGetFillOpacity()
1479 assert(wand->signature == MagickWandSignature); in DrawGetFillOpacity()
1480 if (wand->debug != MagickFalse) in DrawGetFillOpacity()
1481 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetFillOpacity()
1508 WandExport FillRule DrawGetFillRule(const DrawingWand *wand) in DrawGetFillRule() argument
1510 assert(wand != (const DrawingWand *) NULL); in DrawGetFillRule()
1511 assert(wand->signature == MagickWandSignature); in DrawGetFillRule()
1512 if (wand->debug != MagickFalse) in DrawGetFillRule()
1513 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetFillRule()
1541 WandExport char *DrawGetFont(const DrawingWand *wand) in DrawGetFont() argument
1543 assert(wand != (const DrawingWand *) NULL); in DrawGetFont()
1544 assert(wand->signature == MagickWandSignature); in DrawGetFont()
1545 if (wand->debug != MagickFalse) in DrawGetFont()
1546 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetFont()
1575 WandExport char *DrawGetFontFamily(const DrawingWand *wand) in DrawGetFontFamily() argument
1577 assert(wand != (const DrawingWand *) NULL); in DrawGetFontFamily()
1578 assert(wand->signature == MagickWandSignature); in DrawGetFontFamily()
1579 if (wand->debug != MagickFalse) in DrawGetFontFamily()
1580 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetFontFamily()
1613 WandExport MagickBooleanType DrawGetFontResolution(const DrawingWand *wand, in DrawGetFontResolution() argument
1616 assert(wand != (DrawingWand *) NULL); in DrawGetFontResolution()
1617 assert(wand->signature == MagickWandSignature); in DrawGetFontResolution()
1618 if (wand->debug != MagickFalse) in DrawGetFontResolution()
1619 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetFontResolution()
1661 WandExport double DrawGetFontSize(const DrawingWand *wand) in DrawGetFontSize() argument
1663 assert(wand != (const DrawingWand *) NULL); in DrawGetFontSize()
1664 assert(wand->signature == MagickWandSignature); in DrawGetFontSize()
1665 if (wand->debug != MagickFalse) in DrawGetFontSize()
1666 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetFontSize()
1692 WandExport StretchType DrawGetFontStretch(const DrawingWand *wand) in DrawGetFontStretch() argument
1694 assert(wand != (const DrawingWand *) NULL); in DrawGetFontStretch()
1695 assert(wand->signature == MagickWandSignature); in DrawGetFontStretch()
1696 if (wand->debug != MagickFalse) in DrawGetFontStretch()
1697 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetFontStretch()
1723 WandExport StyleType DrawGetFontStyle(const DrawingWand *wand) in DrawGetFontStyle() argument
1725 assert(wand != (const DrawingWand *) NULL); in DrawGetFontStyle()
1726 assert(wand->signature == MagickWandSignature); in DrawGetFontStyle()
1727 if (wand->debug != MagickFalse) in DrawGetFontStyle()
1728 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetFontStyle()
1754 WandExport size_t DrawGetFontWeight(const DrawingWand *wand) in DrawGetFontWeight() argument
1756 assert(wand != (const DrawingWand *) NULL); in DrawGetFontWeight()
1757 assert(wand->signature == MagickWandSignature); in DrawGetFontWeight()
1758 if (wand->debug != MagickFalse) in DrawGetFontWeight()
1759 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetFontWeight()
1786 WandExport GravityType DrawGetGravity(const DrawingWand *wand) in DrawGetGravity() argument
1788 assert(wand != (const DrawingWand *) NULL); in DrawGetGravity()
1789 assert(wand->signature == MagickWandSignature); in DrawGetGravity()
1790 if (wand->debug != MagickFalse) in DrawGetGravity()
1791 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetGravity()
1818 WandExport double DrawGetOpacity(const DrawingWand *wand) in DrawGetOpacity() argument
1823 assert(wand != (const DrawingWand *) NULL); in DrawGetOpacity()
1824 assert(wand->signature == MagickWandSignature); in DrawGetOpacity()
1825 if (wand->debug != MagickFalse) in DrawGetOpacity()
1826 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetOpacity()
1856 WandExport MagickBooleanType DrawGetStrokeAntialias(const DrawingWand *wand) in DrawGetStrokeAntialias() argument
1858 assert(wand != (const DrawingWand *) NULL); in DrawGetStrokeAntialias()
1859 assert(wand->signature == MagickWandSignature); in DrawGetStrokeAntialias()
1860 if (wand->debug != MagickFalse) in DrawGetStrokeAntialias()
1861 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetStrokeAntialias()
1890 WandExport void DrawGetStrokeColor(const DrawingWand *wand, in DrawGetStrokeColor() argument
1893 assert(wand != (const DrawingWand *) NULL); in DrawGetStrokeColor()
1894 assert(wand->signature == MagickWandSignature); in DrawGetStrokeColor()
1896 if (wand->debug != MagickFalse) in DrawGetStrokeColor()
1897 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetStrokeColor()
1928 WandExport double *DrawGetStrokeDashArray(const DrawingWand *wand, in DrawGetStrokeDashArray() argument
1946 assert(wand != (const DrawingWand *) NULL); in DrawGetStrokeDashArray()
1947 assert(wand->signature == MagickWandSignature); in DrawGetStrokeDashArray()
1948 if (wand->debug != MagickFalse) in DrawGetStrokeDashArray()
1949 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetStrokeDashArray()
1994 WandExport double DrawGetStrokeDashOffset(const DrawingWand *wand) in DrawGetStrokeDashOffset() argument
1996 assert(wand != (const DrawingWand *) NULL); in DrawGetStrokeDashOffset()
1997 assert(wand->signature == MagickWandSignature); in DrawGetStrokeDashOffset()
1998 if (wand->debug != MagickFalse) in DrawGetStrokeDashOffset()
1999 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetStrokeDashOffset()
2027 WandExport LineCap DrawGetStrokeLineCap(const DrawingWand *wand) in DrawGetStrokeLineCap() argument
2029 assert(wand != (const DrawingWand *) NULL); in DrawGetStrokeLineCap()
2030 assert(wand->signature == MagickWandSignature); in DrawGetStrokeLineCap()
2031 if (wand->debug != MagickFalse) in DrawGetStrokeLineCap()
2032 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetStrokeLineCap()
2061 WandExport LineJoin DrawGetStrokeLineJoin(const DrawingWand *wand) in DrawGetStrokeLineJoin() argument
2063 assert(wand != (const DrawingWand *) NULL); in DrawGetStrokeLineJoin()
2064 assert(wand->signature == MagickWandSignature); in DrawGetStrokeLineJoin()
2065 if (wand->debug != MagickFalse) in DrawGetStrokeLineJoin()
2066 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetStrokeLineJoin()
2096 WandExport size_t DrawGetStrokeMiterLimit(const DrawingWand *wand) in DrawGetStrokeMiterLimit() argument
2098 assert(wand != (const DrawingWand *) NULL); in DrawGetStrokeMiterLimit()
2099 assert(wand->signature == MagickWandSignature); in DrawGetStrokeMiterLimit()
2100 if (wand->debug != MagickFalse) in DrawGetStrokeMiterLimit()
2101 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetStrokeMiterLimit()
2127 WandExport double DrawGetStrokeOpacity(const DrawingWand *wand) in DrawGetStrokeOpacity() argument
2132 assert(wand != (const DrawingWand *) NULL); in DrawGetStrokeOpacity()
2133 assert(wand->signature == MagickWandSignature); in DrawGetStrokeOpacity()
2134 if (wand->debug != MagickFalse) in DrawGetStrokeOpacity()
2135 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetStrokeOpacity()
2163 WandExport double DrawGetStrokeWidth(const DrawingWand *wand) in DrawGetStrokeWidth() argument
2165 assert(wand != (const DrawingWand *) NULL); in DrawGetStrokeWidth()
2166 assert(wand->signature == MagickWandSignature); in DrawGetStrokeWidth()
2167 if (wand->debug != MagickFalse) in DrawGetStrokeWidth()
2168 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetStrokeWidth()
2195 WandExport AlignType DrawGetTextAlignment(const DrawingWand *wand) in DrawGetTextAlignment() argument
2197 assert(wand != (const DrawingWand *) NULL); in DrawGetTextAlignment()
2198 assert(wand->signature == MagickWandSignature); in DrawGetTextAlignment()
2199 if (wand->debug != MagickFalse) in DrawGetTextAlignment()
2200 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetTextAlignment()
2227 WandExport MagickBooleanType DrawGetTextAntialias(const DrawingWand *wand) in DrawGetTextAntialias() argument
2229 assert(wand != (const DrawingWand *) NULL); in DrawGetTextAntialias()
2230 assert(wand->signature == MagickWandSignature); in DrawGetTextAntialias()
2231 if (wand->debug != MagickFalse) in DrawGetTextAntialias()
2232 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetTextAntialias()
2259 WandExport DecorationType DrawGetTextDecoration(const DrawingWand *wand) in DrawGetTextDecoration() argument
2261 assert(wand != (const DrawingWand *) NULL); in DrawGetTextDecoration()
2262 assert(wand->signature == MagickWandSignature); in DrawGetTextDecoration()
2263 if (wand->debug != MagickFalse) in DrawGetTextDecoration()
2264 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetTextDecoration()
2291 WandExport DirectionType DrawGetTextDirection(const DrawingWand *wand) in DrawGetTextDirection() argument
2293 assert(wand != (const DrawingWand *) NULL); in DrawGetTextDirection()
2294 assert(wand->signature == MagickWandSignature); in DrawGetTextDirection()
2295 if (wand->debug != MagickFalse) in DrawGetTextDirection()
2296 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetTextDirection()
2324 WandExport char *DrawGetTextEncoding(const DrawingWand *wand) in DrawGetTextEncoding() argument
2326 assert(wand != (const DrawingWand *) NULL); in DrawGetTextEncoding()
2327 assert(wand->signature == MagickWandSignature); in DrawGetTextEncoding()
2328 if (wand->debug != MagickFalse) in DrawGetTextEncoding()
2329 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetTextEncoding()
2357 WandExport double DrawGetTextKerning(DrawingWand *wand) in DrawGetTextKerning() argument
2359 assert(wand != (DrawingWand *) NULL); in DrawGetTextKerning()
2360 assert(wand->signature == MagickWandSignature); in DrawGetTextKerning()
2362 if (wand->debug != MagickFalse) in DrawGetTextKerning()
2363 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetTextKerning()
2389 WandExport double DrawGetTextInterlineSpacing(DrawingWand *wand) in DrawGetTextInterlineSpacing() argument
2391 assert(wand != (DrawingWand *) NULL); in DrawGetTextInterlineSpacing()
2392 assert(wand->signature == MagickWandSignature); in DrawGetTextInterlineSpacing()
2393 if (wand->debug != MagickFalse) in DrawGetTextInterlineSpacing()
2394 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetTextInterlineSpacing()
2420 WandExport double DrawGetTextInterwordSpacing(DrawingWand *wand) in DrawGetTextInterwordSpacing() argument
2422 assert(wand != (DrawingWand *) NULL); in DrawGetTextInterwordSpacing()
2423 assert(wand->signature == MagickWandSignature); in DrawGetTextInterwordSpacing()
2424 if (wand->debug != MagickFalse) in DrawGetTextInterwordSpacing()
2425 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetTextInterwordSpacing()
2454 WandExport char *DrawGetVectorGraphics(DrawingWand *wand) in DrawGetVectorGraphics() argument
2470 assert(wand != (const DrawingWand *) NULL); in DrawGetVectorGraphics()
2471 assert(wand->signature == MagickWandSignature); in DrawGetVectorGraphics()
2472 if (wand->debug != MagickFalse) in DrawGetVectorGraphics()
2473 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetVectorGraphics()
2478 GetPixelInfo(wand->image,&pixel); in DrawGetVectorGraphics()
2675 (void) SetXMLTreeContent(child,wand->mvg); in DrawGetVectorGraphics()
2707 WandExport void DrawGetTextUnderColor(const DrawingWand *wand, in DrawGetTextUnderColor() argument
2710 assert(wand != (const DrawingWand *) NULL); in DrawGetTextUnderColor()
2711 assert(wand->signature == MagickWandSignature); in DrawGetTextUnderColor()
2713 if (wand->debug != MagickFalse) in DrawGetTextUnderColor()
2714 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawGetTextUnderColor()
2750 WandExport void DrawLine(DrawingWand *wand,const double sx,const double sy, in DrawLine() argument
2753 assert(wand != (DrawingWand *) NULL); in DrawLine()
2754 assert(wand->signature == MagickWandSignature); in DrawLine()
2755 if (wand->debug != MagickFalse) in DrawLine()
2756 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawLine()
2757 (void) MVGPrintf(wand,"line %.20g %.20g %.20g %.20g\n",sx,sy,ex,ey); in DrawLine()
2785 WandExport void DrawPathClose(DrawingWand *wand) in DrawPathClose() argument
2787 assert(wand != (DrawingWand *) NULL); in DrawPathClose()
2788 assert(wand->signature == MagickWandSignature); in DrawPathClose()
2789 if (wand->debug != MagickFalse) in DrawPathClose()
2790 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathClose()
2791 (void) MVGAutoWrapPrintf(wand,"%s",wand->path_mode == AbsolutePathMode ? in DrawPathClose()
2836 static void DrawPathCurveTo(DrawingWand *wand,const PathMode mode, in DrawPathCurveTo() argument
2840 assert(wand != (DrawingWand *) NULL); in DrawPathCurveTo()
2841 assert(wand->signature == MagickWandSignature); in DrawPathCurveTo()
2842 if (wand->debug != MagickFalse) in DrawPathCurveTo()
2843 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathCurveTo()
2844 if ((wand->path_operation != PathCurveToOperation) || in DrawPathCurveTo()
2845 (wand->path_mode != mode)) in DrawPathCurveTo()
2847 wand->path_operation=PathCurveToOperation; in DrawPathCurveTo()
2848 wand->path_mode=mode; in DrawPathCurveTo()
2849 (void) MVGAutoWrapPrintf(wand, "%c%.20g %.20g %.20g %.20g %.20g %.20g", in DrawPathCurveTo()
2853 (void) MVGAutoWrapPrintf(wand," %.20g %.20g %.20g %.20g %.20g %.20g",x1,y1, in DrawPathCurveTo()
2857 WandExport void DrawPathCurveToAbsolute(DrawingWand *wand,const double x1, in DrawPathCurveToAbsolute() argument
2860 assert(wand != (DrawingWand *) NULL); in DrawPathCurveToAbsolute()
2861 assert(wand->signature == MagickWandSignature); in DrawPathCurveToAbsolute()
2862 if (wand->debug != MagickFalse) in DrawPathCurveToAbsolute()
2863 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathCurveToAbsolute()
2864 DrawPathCurveTo(wand,AbsolutePathMode,x1,y1,x2,y2,x,y); in DrawPathCurveToAbsolute()
2907 WandExport void DrawPathCurveToRelative(DrawingWand *wand,const double x1, in DrawPathCurveToRelative() argument
2910 assert(wand != (DrawingWand *) NULL); in DrawPathCurveToRelative()
2911 assert(wand->signature == MagickWandSignature); in DrawPathCurveToRelative()
2912 if (wand->debug != MagickFalse) in DrawPathCurveToRelative()
2913 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathCurveToRelative()
2914 DrawPathCurveTo(wand,RelativePathMode,x1,y1,x2,y2,x,y); in DrawPathCurveToRelative()
2952 static void DrawPathCurveToQuadraticBezier(DrawingWand *wand, in DrawPathCurveToQuadraticBezier() argument
2955 assert(wand != (DrawingWand *) NULL); in DrawPathCurveToQuadraticBezier()
2956 assert(wand->signature == MagickWandSignature); in DrawPathCurveToQuadraticBezier()
2957 if (wand->debug != MagickFalse) in DrawPathCurveToQuadraticBezier()
2958 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathCurveToQuadraticBezier()
2959 if ((wand->path_operation != PathCurveToQuadraticBezierOperation) || in DrawPathCurveToQuadraticBezier()
2960 (wand->path_mode != mode)) in DrawPathCurveToQuadraticBezier()
2962 wand->path_operation=PathCurveToQuadraticBezierOperation; in DrawPathCurveToQuadraticBezier()
2963 wand->path_mode=mode; in DrawPathCurveToQuadraticBezier()
2964 (void) MVGAutoWrapPrintf(wand, "%c%.20g %.20g %.20g %.20g", in DrawPathCurveToQuadraticBezier()
2968 (void) MVGAutoWrapPrintf(wand," %.20g %.20g %.20g %.20g",x1,y1,x,y); in DrawPathCurveToQuadraticBezier()
2971 WandExport void DrawPathCurveToQuadraticBezierAbsolute(DrawingWand *wand, in DrawPathCurveToQuadraticBezierAbsolute() argument
2974 assert(wand != (DrawingWand *) NULL); in DrawPathCurveToQuadraticBezierAbsolute()
2975 assert(wand->signature == MagickWandSignature); in DrawPathCurveToQuadraticBezierAbsolute()
2976 if (wand->debug != MagickFalse) in DrawPathCurveToQuadraticBezierAbsolute()
2977 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathCurveToQuadraticBezierAbsolute()
2978 DrawPathCurveToQuadraticBezier(wand,AbsolutePathMode,x1,y1,x,y); in DrawPathCurveToQuadraticBezierAbsolute()
3015 WandExport void DrawPathCurveToQuadraticBezierRelative(DrawingWand *wand, in DrawPathCurveToQuadraticBezierRelative() argument
3018 assert(wand != (DrawingWand *) NULL); in DrawPathCurveToQuadraticBezierRelative()
3019 assert(wand->signature == MagickWandSignature); in DrawPathCurveToQuadraticBezierRelative()
3020 if (wand->debug != MagickFalse) in DrawPathCurveToQuadraticBezierRelative()
3021 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathCurveToQuadraticBezierRelative()
3022 DrawPathCurveToQuadraticBezier(wand,RelativePathMode,x1,y1,x,y); in DrawPathCurveToQuadraticBezierRelative()
3064 static void DrawPathCurveToQuadraticBezierSmooth(DrawingWand *wand, in DrawPathCurveToQuadraticBezierSmooth() argument
3067 assert(wand != (DrawingWand *) NULL); in DrawPathCurveToQuadraticBezierSmooth()
3068 assert(wand->signature == MagickWandSignature); in DrawPathCurveToQuadraticBezierSmooth()
3069 if (wand->debug != MagickFalse) in DrawPathCurveToQuadraticBezierSmooth()
3070 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathCurveToQuadraticBezierSmooth()
3071 if ((wand->path_operation != PathCurveToQuadraticBezierSmoothOperation) || in DrawPathCurveToQuadraticBezierSmooth()
3072 (wand->path_mode != mode)) in DrawPathCurveToQuadraticBezierSmooth()
3074 wand->path_operation=PathCurveToQuadraticBezierSmoothOperation; in DrawPathCurveToQuadraticBezierSmooth()
3075 wand->path_mode=mode; in DrawPathCurveToQuadraticBezierSmooth()
3076 (void) MVGAutoWrapPrintf(wand,"%c%.20g %.20g",mode == AbsolutePathMode ? in DrawPathCurveToQuadraticBezierSmooth()
3080 (void) MVGAutoWrapPrintf(wand," %.20g %.20g",x,y); in DrawPathCurveToQuadraticBezierSmooth()
3083 WandExport void DrawPathCurveToQuadraticBezierSmoothAbsolute(DrawingWand *wand, in DrawPathCurveToQuadraticBezierSmoothAbsolute() argument
3086 assert(wand != (DrawingWand *) NULL); in DrawPathCurveToQuadraticBezierSmoothAbsolute()
3087 assert(wand->signature == MagickWandSignature); in DrawPathCurveToQuadraticBezierSmoothAbsolute()
3088 if (wand->debug != MagickFalse) in DrawPathCurveToQuadraticBezierSmoothAbsolute()
3089 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathCurveToQuadraticBezierSmoothAbsolute()
3090 DrawPathCurveToQuadraticBezierSmooth(wand,AbsolutePathMode,x,y); in DrawPathCurveToQuadraticBezierSmoothAbsolute()
3130 WandExport void DrawPathCurveToQuadraticBezierSmoothRelative(DrawingWand *wand, in DrawPathCurveToQuadraticBezierSmoothRelative() argument
3133 DrawPathCurveToQuadraticBezierSmooth(wand,RelativePathMode,x,y); in DrawPathCurveToQuadraticBezierSmoothRelative()
3178 static void DrawPathCurveToSmooth(DrawingWand *wand,const PathMode mode, in DrawPathCurveToSmooth() argument
3181 assert(wand != (DrawingWand *) NULL); in DrawPathCurveToSmooth()
3182 assert(wand->signature == MagickWandSignature); in DrawPathCurveToSmooth()
3183 if (wand->debug != MagickFalse) in DrawPathCurveToSmooth()
3184 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathCurveToSmooth()
3185 if ((wand->path_operation != PathCurveToSmoothOperation) || in DrawPathCurveToSmooth()
3186 (wand->path_mode != mode)) in DrawPathCurveToSmooth()
3188 wand->path_operation=PathCurveToSmoothOperation; in DrawPathCurveToSmooth()
3189 wand->path_mode=mode; in DrawPathCurveToSmooth()
3190 (void) MVGAutoWrapPrintf(wand,"%c%.20g %.20g %.20g %.20g", in DrawPathCurveToSmooth()
3194 (void) MVGAutoWrapPrintf(wand," %.20g %.20g %.20g %.20g",x2,y2,x,y); in DrawPathCurveToSmooth()
3197 WandExport void DrawPathCurveToSmoothAbsolute(DrawingWand *wand,const double x2, in DrawPathCurveToSmoothAbsolute() argument
3200 assert(wand != (DrawingWand *) NULL); in DrawPathCurveToSmoothAbsolute()
3201 assert(wand->signature == MagickWandSignature); in DrawPathCurveToSmoothAbsolute()
3202 if (wand->debug != MagickFalse) in DrawPathCurveToSmoothAbsolute()
3203 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathCurveToSmoothAbsolute()
3204 DrawPathCurveToSmooth(wand,AbsolutePathMode,x2,y2,x,y); in DrawPathCurveToSmoothAbsolute()
3247 WandExport void DrawPathCurveToSmoothRelative(DrawingWand *wand,const double x2, in DrawPathCurveToSmoothRelative() argument
3250 assert(wand != (DrawingWand *) NULL); in DrawPathCurveToSmoothRelative()
3251 assert(wand->signature == MagickWandSignature); in DrawPathCurveToSmoothRelative()
3252 if (wand->debug != MagickFalse) in DrawPathCurveToSmoothRelative()
3253 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathCurveToSmoothRelative()
3254 DrawPathCurveToSmooth(wand,RelativePathMode,x2,y2,x,y); in DrawPathCurveToSmoothRelative()
3306 static void DrawPathEllipticArc(DrawingWand *wand, const PathMode mode, in DrawPathEllipticArc() argument
3311 assert(wand != (DrawingWand *) NULL); in DrawPathEllipticArc()
3312 assert(wand->signature == MagickWandSignature); in DrawPathEllipticArc()
3313 if (wand->debug != MagickFalse) in DrawPathEllipticArc()
3314 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathEllipticArc()
3315 if ((wand->path_operation != PathEllipticArcOperation) || in DrawPathEllipticArc()
3316 (wand->path_mode != mode)) in DrawPathEllipticArc()
3318 wand->path_operation=PathEllipticArcOperation; in DrawPathEllipticArc()
3319 wand->path_mode=mode; in DrawPathEllipticArc()
3320 (void) MVGAutoWrapPrintf(wand, "%c%.20g %.20g %.20g %u %u %.20g %.20g", in DrawPathEllipticArc()
3325 (void) MVGAutoWrapPrintf(wand," %.20g %.20g %.20g %u %u %.20g %.20g",rx,ry, in DrawPathEllipticArc()
3329 WandExport void DrawPathEllipticArcAbsolute(DrawingWand *wand,const double rx, in DrawPathEllipticArcAbsolute() argument
3334 assert(wand != (DrawingWand *) NULL); in DrawPathEllipticArcAbsolute()
3335 assert(wand->signature == MagickWandSignature); in DrawPathEllipticArcAbsolute()
3336 if (wand->debug != MagickFalse) in DrawPathEllipticArcAbsolute()
3337 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathEllipticArcAbsolute()
3338 DrawPathEllipticArc(wand,AbsolutePathMode,rx,ry,x_axis_rotation, in DrawPathEllipticArcAbsolute()
3389 WandExport void DrawPathEllipticArcRelative(DrawingWand *wand,const double rx, in DrawPathEllipticArcRelative() argument
3394 DrawPathEllipticArc(wand,RelativePathMode,rx,ry,x_axis_rotation, in DrawPathEllipticArcRelative()
3420 WandExport void DrawPathFinish(DrawingWand *wand) in DrawPathFinish() argument
3422 assert(wand != (DrawingWand *) NULL); in DrawPathFinish()
3423 assert(wand->signature == MagickWandSignature); in DrawPathFinish()
3424 if (wand->debug != MagickFalse) in DrawPathFinish()
3425 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathFinish()
3426 (void) MVGPrintf(wand,"'\n"); in DrawPathFinish()
3427 wand->path_operation=PathDefaultOperation; in DrawPathFinish()
3428 wand->path_mode=DefaultPathMode; in DrawPathFinish()
3460 static void DrawPathLineTo(DrawingWand *wand,const PathMode mode, in DrawPathLineTo() argument
3463 assert(wand != (DrawingWand *) NULL); in DrawPathLineTo()
3464 assert(wand->signature == MagickWandSignature); in DrawPathLineTo()
3465 if (wand->debug != MagickFalse) in DrawPathLineTo()
3466 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathLineTo()
3467 if ((wand->path_operation != PathLineToOperation) || in DrawPathLineTo()
3468 (wand->path_mode != mode)) in DrawPathLineTo()
3470 wand->path_operation=PathLineToOperation; in DrawPathLineTo()
3471 wand->path_mode=mode; in DrawPathLineTo()
3472 (void) MVGAutoWrapPrintf(wand,"%c%.20g %.20g",mode == AbsolutePathMode ? in DrawPathLineTo()
3476 (void) MVGAutoWrapPrintf(wand," %.20g %.20g",x,y); in DrawPathLineTo()
3479 WandExport void DrawPathLineToAbsolute(DrawingWand *wand,const double x, in DrawPathLineToAbsolute() argument
3482 assert(wand != (DrawingWand *) NULL); in DrawPathLineToAbsolute()
3483 assert(wand->signature == MagickWandSignature); in DrawPathLineToAbsolute()
3484 if (wand->debug != MagickFalse) in DrawPathLineToAbsolute()
3485 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathLineToAbsolute()
3486 DrawPathLineTo(wand,AbsolutePathMode,x,y); in DrawPathLineToAbsolute()
3518 WandExport void DrawPathLineToRelative(DrawingWand *wand,const double x, in DrawPathLineToRelative() argument
3521 assert(wand != (DrawingWand *) NULL); in DrawPathLineToRelative()
3522 assert(wand->signature == MagickWandSignature); in DrawPathLineToRelative()
3523 if (wand->debug != MagickFalse) in DrawPathLineToRelative()
3524 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathLineToRelative()
3525 DrawPathLineTo(wand,RelativePathMode,x,y); in DrawPathLineToRelative()
3555 static void DrawPathLineToHorizontal(DrawingWand *wand,const PathMode mode, in DrawPathLineToHorizontal() argument
3558 assert(wand != (DrawingWand *) NULL); in DrawPathLineToHorizontal()
3559 assert(wand->signature == MagickWandSignature); in DrawPathLineToHorizontal()
3560 if (wand->debug != MagickFalse) in DrawPathLineToHorizontal()
3561 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathLineToHorizontal()
3562 if ((wand->path_operation != PathLineToHorizontalOperation) || in DrawPathLineToHorizontal()
3563 (wand->path_mode != mode)) in DrawPathLineToHorizontal()
3565 wand->path_operation=PathLineToHorizontalOperation; in DrawPathLineToHorizontal()
3566 wand->path_mode=mode; in DrawPathLineToHorizontal()
3567 (void) MVGAutoWrapPrintf(wand,"%c%.20g",mode == AbsolutePathMode ? in DrawPathLineToHorizontal()
3571 (void) MVGAutoWrapPrintf(wand," %.20g",x); in DrawPathLineToHorizontal()
3574 WandExport void DrawPathLineToHorizontalAbsolute(DrawingWand *wand, in DrawPathLineToHorizontalAbsolute() argument
3577 assert(wand != (DrawingWand *) NULL); in DrawPathLineToHorizontalAbsolute()
3578 assert(wand->signature == MagickWandSignature); in DrawPathLineToHorizontalAbsolute()
3579 if (wand->debug != MagickFalse) in DrawPathLineToHorizontalAbsolute()
3580 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathLineToHorizontalAbsolute()
3581 DrawPathLineToHorizontal(wand,AbsolutePathMode,x); in DrawPathLineToHorizontalAbsolute()
3611 WandExport void DrawPathLineToHorizontalRelative(DrawingWand *wand, in DrawPathLineToHorizontalRelative() argument
3614 DrawPathLineToHorizontal(wand,RelativePathMode,x); in DrawPathLineToHorizontalRelative()
3645 static void DrawPathLineToVertical(DrawingWand *wand,const PathMode mode, in DrawPathLineToVertical() argument
3648 assert(wand != (DrawingWand *) NULL); in DrawPathLineToVertical()
3649 assert(wand->signature == MagickWandSignature); in DrawPathLineToVertical()
3650 if (wand->debug != MagickFalse) in DrawPathLineToVertical()
3651 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathLineToVertical()
3652 if ((wand->path_operation != PathLineToVerticalOperation) || in DrawPathLineToVertical()
3653 (wand->path_mode != mode)) in DrawPathLineToVertical()
3655 wand->path_operation=PathLineToVerticalOperation; in DrawPathLineToVertical()
3656 wand->path_mode=mode; in DrawPathLineToVertical()
3657 (void) MVGAutoWrapPrintf(wand,"%c%.20g",mode == AbsolutePathMode ? in DrawPathLineToVertical()
3661 (void) MVGAutoWrapPrintf(wand," %.20g",y); in DrawPathLineToVertical()
3664 WandExport void DrawPathLineToVerticalAbsolute(DrawingWand *wand,const double y) in DrawPathLineToVerticalAbsolute() argument
3666 assert(wand != (DrawingWand *) NULL); in DrawPathLineToVerticalAbsolute()
3667 assert(wand->signature == MagickWandSignature); in DrawPathLineToVerticalAbsolute()
3668 if (wand->debug != MagickFalse) in DrawPathLineToVerticalAbsolute()
3669 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathLineToVerticalAbsolute()
3670 DrawPathLineToVertical(wand,AbsolutePathMode,y); in DrawPathLineToVerticalAbsolute()
3700 WandExport void DrawPathLineToVerticalRelative(DrawingWand *wand,const double y) in DrawPathLineToVerticalRelative() argument
3702 assert(wand != (DrawingWand *) NULL); in DrawPathLineToVerticalRelative()
3703 assert(wand->signature == MagickWandSignature); in DrawPathLineToVerticalRelative()
3704 if (wand->debug != MagickFalse) in DrawPathLineToVerticalRelative()
3705 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathLineToVerticalRelative()
3706 DrawPathLineToVertical(wand,RelativePathMode,y); in DrawPathLineToVerticalRelative()
3738 static void DrawPathMoveTo(DrawingWand *wand,const PathMode mode,const double x, in DrawPathMoveTo() argument
3741 assert(wand != (DrawingWand *) NULL); in DrawPathMoveTo()
3742 assert(wand->signature == MagickWandSignature); in DrawPathMoveTo()
3743 if (wand->debug != MagickFalse) in DrawPathMoveTo()
3744 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathMoveTo()
3745 if ((wand->path_operation != PathMoveToOperation) || in DrawPathMoveTo()
3746 (wand->path_mode != mode)) in DrawPathMoveTo()
3748 wand->path_operation=PathMoveToOperation; in DrawPathMoveTo()
3749 wand->path_mode=mode; in DrawPathMoveTo()
3750 (void) MVGAutoWrapPrintf(wand,"%c%.20g %.20g",mode == AbsolutePathMode ? in DrawPathMoveTo()
3754 (void) MVGAutoWrapPrintf(wand," %.20g %.20g",x,y); in DrawPathMoveTo()
3757 WandExport void DrawPathMoveToAbsolute(DrawingWand *wand,const double x, in DrawPathMoveToAbsolute() argument
3760 assert(wand != (DrawingWand *) NULL); in DrawPathMoveToAbsolute()
3761 assert(wand->signature == MagickWandSignature); in DrawPathMoveToAbsolute()
3762 if (wand->debug != MagickFalse) in DrawPathMoveToAbsolute()
3763 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathMoveToAbsolute()
3764 DrawPathMoveTo(wand,AbsolutePathMode,x,y); in DrawPathMoveToAbsolute()
3796 WandExport void DrawPathMoveToRelative(DrawingWand *wand,const double x, in DrawPathMoveToRelative() argument
3799 assert(wand != (DrawingWand *) NULL); in DrawPathMoveToRelative()
3800 assert(wand->signature == MagickWandSignature); in DrawPathMoveToRelative()
3801 if (wand->debug != MagickFalse) in DrawPathMoveToRelative()
3802 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathMoveToRelative()
3803 DrawPathMoveTo(wand,RelativePathMode,x,y); in DrawPathMoveToRelative()
3832 WandExport void DrawPathStart(DrawingWand *wand) in DrawPathStart() argument
3834 assert(wand != (DrawingWand *) NULL); in DrawPathStart()
3835 assert(wand->signature == MagickWandSignature); in DrawPathStart()
3836 if (wand->debug != MagickFalse) in DrawPathStart()
3837 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPathStart()
3838 (void) MVGPrintf(wand,"path '"); in DrawPathStart()
3839 wand->path_operation=PathDefaultOperation; in DrawPathStart()
3840 wand->path_mode=DefaultPathMode; in DrawPathStart()
3869 WandExport void DrawPoint(DrawingWand *wand,const double x,const double y) in DrawPoint() argument
3871 assert(wand != (DrawingWand *) NULL); in DrawPoint()
3872 assert(wand->signature == MagickWandSignature); in DrawPoint()
3873 if (wand->debug != MagickFalse) in DrawPoint()
3874 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPoint()
3875 (void) MVGPrintf(wand,"point %.20g %.20g\n",x,y); in DrawPoint()
3906 WandExport void DrawPolygon(DrawingWand *wand, in DrawPolygon() argument
3909 assert(wand != (DrawingWand *) NULL); in DrawPolygon()
3910 assert(wand->signature == MagickWandSignature); in DrawPolygon()
3911 if (wand->debug != MagickFalse) in DrawPolygon()
3912 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPolygon()
3913 MVGAppendPointsCommand(wand,"polygon",number_coordinates,coordinates); in DrawPolygon()
3944 WandExport void DrawPolyline(DrawingWand *wand, in DrawPolyline() argument
3947 assert(wand != (DrawingWand *) NULL); in DrawPolyline()
3948 assert(wand->signature == MagickWandSignature); in DrawPolyline()
3949 if (wand->debug != MagickFalse) in DrawPolyline()
3950 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPolyline()
3951 MVGAppendPointsCommand(wand,"polyline",number_coordinates,coordinates); in DrawPolyline()
3976 WandExport void DrawPopClipPath(DrawingWand *wand) in DrawPopClipPath() argument
3978 assert(wand != (DrawingWand *) NULL); in DrawPopClipPath()
3979 assert(wand->signature == MagickWandSignature); in DrawPopClipPath()
3980 if (wand->debug != MagickFalse) in DrawPopClipPath()
3981 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPopClipPath()
3982 if (wand->indent_depth > 0) in DrawPopClipPath()
3983 wand->indent_depth--; in DrawPopClipPath()
3984 (void) MVGPrintf(wand,"pop clip-path\n"); in DrawPopClipPath()
4009 WandExport void DrawPopDefs(DrawingWand *wand) in DrawPopDefs() argument
4011 assert(wand != (DrawingWand *) NULL); in DrawPopDefs()
4012 assert(wand->signature == MagickWandSignature); in DrawPopDefs()
4013 if (wand->debug != MagickFalse) in DrawPopDefs()
4014 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPopDefs()
4015 if (wand->indent_depth > 0) in DrawPopDefs()
4016 wand->indent_depth--; in DrawPopDefs()
4017 (void) MVGPrintf(wand,"pop defs\n"); in DrawPopDefs()
4042 WandExport MagickBooleanType DrawPopPattern(DrawingWand *wand) in DrawPopPattern() argument
4048 assert(wand != (DrawingWand *) NULL); in DrawPopPattern()
4049 assert(wand->signature == MagickWandSignature); in DrawPopPattern()
4050 if (wand->debug != MagickFalse) in DrawPopPattern()
4051 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPopPattern()
4052 if (wand->image == (Image *) NULL) in DrawPopPattern()
4053 ThrowDrawException(WandError,"ContainsNoImages",wand->name); in DrawPopPattern()
4054 if (wand->pattern_id == (const char *) NULL) in DrawPopPattern()
4057 wand->name); in DrawPopPattern()
4060 (void) FormatLocaleString(key,MagickPathExtent,"%s",wand->pattern_id); in DrawPopPattern()
4061 (void) SetImageArtifact(wand->image,key,wand->mvg+wand->pattern_offset); in DrawPopPattern()
4063 (double) wand->pattern_bounds.width,(double) wand->pattern_bounds.height, in DrawPopPattern()
4064 (double) wand->pattern_bounds.x,(double) wand->pattern_bounds.y); in DrawPopPattern()
4065 (void) SetImageArtifact(wand->image,key,geometry); in DrawPopPattern()
4066 wand->pattern_id=DestroyString(wand->pattern_id); in DrawPopPattern()
4067 wand->pattern_offset=0; in DrawPopPattern()
4068 wand->pattern_bounds.x=0; in DrawPopPattern()
4069 wand->pattern_bounds.y=0; in DrawPopPattern()
4070 wand->pattern_bounds.width=0; in DrawPopPattern()
4071 wand->pattern_bounds.height=0; in DrawPopPattern()
4072 wand->filter_off=MagickTrue; in DrawPopPattern()
4073 if (wand->indent_depth > 0) in DrawPopPattern()
4074 wand->indent_depth--; in DrawPopPattern()
4075 (void) MVGPrintf(wand,"pop pattern\n"); in DrawPopPattern()
4105 WandExport void DrawPushClipPath(DrawingWand *wand,const char *clip_mask_id) in DrawPushClipPath() argument
4107 assert(wand != (DrawingWand *) NULL); in DrawPushClipPath()
4108 assert(wand->signature == MagickWandSignature); in DrawPushClipPath()
4109 if (wand->debug != MagickFalse) in DrawPushClipPath()
4110 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPushClipPath()
4112 (void) MVGPrintf(wand,"push clip-path %s\n",clip_mask_id); in DrawPushClipPath()
4113 wand->indent_depth++; in DrawPushClipPath()
4140 WandExport void DrawPushDefs(DrawingWand *wand) in DrawPushDefs() argument
4142 assert(wand != (DrawingWand *) NULL); in DrawPushDefs()
4143 assert(wand->signature == MagickWandSignature); in DrawPushDefs()
4144 if (wand->debug != MagickFalse) in DrawPushDefs()
4145 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPushDefs()
4146 (void) MVGPrintf(wand,"push defs\n"); in DrawPushDefs()
4147 wand->indent_depth++; in DrawPushDefs()
4189 WandExport MagickBooleanType DrawPushPattern(DrawingWand *wand, in DrawPushPattern() argument
4193 assert(wand != (DrawingWand *) NULL); in DrawPushPattern()
4194 assert(wand->signature == MagickWandSignature); in DrawPushPattern()
4195 if (wand->debug != MagickFalse) in DrawPushPattern()
4196 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawPushPattern()
4198 if (wand->pattern_id != NULL) in DrawPushPattern()
4201 wand->pattern_id); in DrawPushPattern()
4204 wand->filter_off=MagickTrue; in DrawPushPattern()
4205 (void) MVGPrintf(wand,"push pattern %s %.20g %.20g %.20g %.20g\n",pattern_id, in DrawPushPattern()
4207 wand->indent_depth++; in DrawPushPattern()
4208 wand->pattern_id=AcquireString(pattern_id); in DrawPushPattern()
4209 wand->pattern_bounds.x=(ssize_t) ceil(x-0.5); in DrawPushPattern()
4210 wand->pattern_bounds.y=(ssize_t) ceil(y-0.5); in DrawPushPattern()
4211 wand->pattern_bounds.width=(size_t) floor(width+0.5); in DrawPushPattern()
4212 wand->pattern_bounds.height=(size_t) floor(height+0.5); in DrawPushPattern()
4213 wand->pattern_offset=wand->mvg_length; in DrawPushPattern()
4247 WandExport void DrawRectangle(DrawingWand *wand,const double x1,const double y1, in DrawRectangle() argument
4250 assert(wand != (DrawingWand *) NULL); in DrawRectangle()
4251 assert(wand->signature == MagickWandSignature); in DrawRectangle()
4252 if (wand->debug != MagickFalse) in DrawRectangle()
4253 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawRectangle()
4254 (void) MVGPrintf(wand,"rectangle %.20g %.20g %.20g %.20g\n",x1,y1,x2,y2); in DrawRectangle()
4279 WandExport MagickBooleanType DrawRender(DrawingWand *wand) in DrawRender() argument
4284 assert(wand != (const DrawingWand *) NULL); in DrawRender()
4285 assert(wand->signature == MagickWandSignature); in DrawRender()
4286 if (wand->debug != MagickFalse) in DrawRender()
4287 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawRender()
4288 CurrentContext->primitive=wand->mvg; in DrawRender()
4289 if (wand->debug != MagickFalse) in DrawRender()
4290 (void) LogMagickEvent(DrawEvent,GetMagickModule(),"MVG:\n'%s'\n",wand->mvg); in DrawRender()
4291 if (wand->image == (Image *) NULL) in DrawRender()
4292 ThrowDrawException(WandError,"ContainsNoImages",wand->name); in DrawRender()
4293 status=DrawImage(wand->image,CurrentContext,wand->exception); in DrawRender()
4321 WandExport void DrawResetVectorGraphics(DrawingWand *wand) in DrawResetVectorGraphics() argument
4323 assert(wand != (DrawingWand *) NULL); in DrawResetVectorGraphics()
4324 assert(wand->signature == MagickWandSignature); in DrawResetVectorGraphics()
4325 if (wand->debug != MagickFalse) in DrawResetVectorGraphics()
4326 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawResetVectorGraphics()
4327 if (wand->mvg != (char *) NULL) in DrawResetVectorGraphics()
4328 wand->mvg=DestroyString(wand->mvg); in DrawResetVectorGraphics()
4329 wand->mvg_alloc=0; in DrawResetVectorGraphics()
4330 wand->mvg_length=0; in DrawResetVectorGraphics()
4331 wand->mvg_width=0; in DrawResetVectorGraphics()
4358 WandExport void DrawRotate(DrawingWand *wand,const double degrees) in DrawRotate() argument
4360 assert(wand != (DrawingWand *) NULL); in DrawRotate()
4361 assert(wand->signature == MagickWandSignature); in DrawRotate()
4362 if (wand->debug != MagickFalse) in DrawRotate()
4363 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawRotate()
4364 (void) MVGPrintf(wand,"rotate %.20g\n",degrees); in DrawRotate()
4404 WandExport void DrawRoundRectangle(DrawingWand *wand,double x1,double y1, in DrawRoundRectangle() argument
4407 assert(wand != (DrawingWand *) NULL); in DrawRoundRectangle()
4408 assert(wand->signature == MagickWandSignature); in DrawRoundRectangle()
4409 if (wand->debug != MagickFalse) in DrawRoundRectangle()
4410 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawRoundRectangle()
4411 (void) MVGPrintf(wand,"roundrectangle %.20g %.20g %.20g %.20g %.20g %.20g\n", in DrawRoundRectangle()
4442 WandExport void DrawScale(DrawingWand *wand,const double x,const double y) in DrawScale() argument
4444 assert(wand != (DrawingWand *) NULL); in DrawScale()
4445 assert(wand->signature == MagickWandSignature); in DrawScale()
4446 if (wand->debug != MagickFalse) in DrawScale()
4447 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawScale()
4448 (void) MVGPrintf(wand,"scale %.20g %.20g\n",x,y); in DrawScale()
4476 WandExport void DrawSetBorderColor(DrawingWand *wand, in DrawSetBorderColor() argument
4484 assert(wand != (DrawingWand *) NULL); in DrawSetBorderColor()
4485 assert(wand->signature == MagickWandSignature); in DrawSetBorderColor()
4486 if (wand->debug != MagickFalse) in DrawSetBorderColor()
4487 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetBorderColor()
4492 if ((wand->filter_off != MagickFalse) || in DrawSetBorderColor()
4496 (void) MVGPrintf(wand,"border-color '"); in DrawSetBorderColor()
4497 MVGAppendColor(wand,&border_color); in DrawSetBorderColor()
4498 (void) MVGPrintf(wand,"'\n"); in DrawSetBorderColor()
4529 WandExport MagickBooleanType DrawSetClipPath(DrawingWand *wand, in DrawSetClipPath() argument
4532 if (wand->debug != MagickFalse) in DrawSetClipPath()
4534 assert(wand != (DrawingWand *) NULL); in DrawSetClipPath()
4535 assert(wand->signature == MagickWandSignature); in DrawSetClipPath()
4538 (wand->filter_off != MagickFalse) || in DrawSetClipPath()
4543 if (wand->image == (Image *) NULL) in DrawSetClipPath()
4544 ThrowDrawException(WandError,"ContainsNoImages",wand->name); in DrawSetClipPath()
4545 (void) DrawClipPath(wand->image,CurrentContext,CurrentContext->clip_mask); in DrawSetClipPath()
4547 (void) MVGPrintf(wand,"clip-path url(#%s)\n",clip_mask); in DrawSetClipPath()
4576 WandExport void DrawSetClipRule(DrawingWand *wand,const FillRule fill_rule) in DrawSetClipRule() argument
4578 assert(wand != (DrawingWand *) NULL); in DrawSetClipRule()
4579 assert(wand->signature == MagickWandSignature); in DrawSetClipRule()
4580 if (wand->debug != MagickFalse) in DrawSetClipRule()
4581 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetClipRule()
4582 if ((wand->filter_off != MagickFalse) || in DrawSetClipRule()
4586 (void) MVGPrintf(wand, "clip-rule '%s'\n",CommandOptionToMnemonic( in DrawSetClipRule()
4617 WandExport void DrawSetClipUnits(DrawingWand *wand, in DrawSetClipUnits() argument
4620 assert(wand != (DrawingWand *) NULL); in DrawSetClipUnits()
4621 assert(wand->signature == MagickWandSignature); in DrawSetClipUnits()
4622 if (wand->debug != MagickFalse) in DrawSetClipUnits()
4623 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetClipUnits()
4624 if ((wand->filter_off != MagickFalse) || in DrawSetClipUnits()
4638 AdjustAffine(wand,&affine); in DrawSetClipUnits()
4640 (void) MVGPrintf(wand, "clip-units '%s'\n",CommandOptionToMnemonic( in DrawSetClipUnits()
4670 WandExport MagickBooleanType DrawSetDensity(DrawingWand *wand, in DrawSetDensity() argument
4673 if (wand->debug != MagickFalse) in DrawSetDensity()
4675 assert(wand != (DrawingWand *) NULL); in DrawSetDensity()
4676 assert(wand->signature == MagickWandSignature); in DrawSetDensity()
4679 (wand->filter_off != MagickFalse) || in DrawSetDensity()
4683 (void) MVGPrintf(wand,"density '%s'\n",density); in DrawSetDensity()
4712 WandExport void DrawSetFillColor(DrawingWand *wand,const PixelWand *fill_wand) in DrawSetFillColor() argument
4719 assert(wand != (DrawingWand *) NULL); in DrawSetFillColor()
4720 assert(wand->signature == MagickWandSignature); in DrawSetFillColor()
4721 if (wand->debug != MagickFalse) in DrawSetFillColor()
4722 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetFillColor()
4727 if ((wand->filter_off != MagickFalse) || in DrawSetFillColor()
4731 (void) MVGPrintf(wand,"fill '"); in DrawSetFillColor()
4732 MVGAppendColor(wand,&fill_color); in DrawSetFillColor()
4733 (void) MVGPrintf(wand,"'\n"); in DrawSetFillColor()
4762 WandExport void DrawSetFillOpacity(DrawingWand *wand,const double fill_opacity) in DrawSetFillOpacity() argument
4767 assert(wand != (DrawingWand *) NULL); in DrawSetFillOpacity()
4768 assert(wand->signature == MagickWandSignature); in DrawSetFillOpacity()
4769 if (wand->debug != MagickFalse) in DrawSetFillOpacity()
4770 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetFillOpacity()
4772 if ((wand->filter_off != MagickFalse) || in DrawSetFillOpacity()
4776 (void) MVGPrintf(wand,"fill-opacity %.20g\n",fill_opacity); in DrawSetFillOpacity()
4807 WandExport MagickBooleanType DrawSetFontResolution(DrawingWand *wand, in DrawSetFontResolution() argument
4813 assert(wand != (DrawingWand *) NULL); in DrawSetFontResolution()
4814 assert(wand->signature == MagickWandSignature); in DrawSetFontResolution()
4815 if (wand->debug != MagickFalse) in DrawSetFontResolution()
4816 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetFontResolution()
4848 WandExport void DrawSetOpacity(DrawingWand *wand,const double opacity) in DrawSetOpacity() argument
4853 assert(wand != (DrawingWand *) NULL); in DrawSetOpacity()
4854 assert(wand->signature == MagickWandSignature); in DrawSetOpacity()
4855 if (wand->debug != MagickFalse) in DrawSetOpacity()
4856 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetOpacity()
4858 if ((wand->filter_off != MagickFalse) || in DrawSetOpacity()
4862 (void) MVGPrintf(wand,"opacity %.20g\n",opacity); in DrawSetOpacity()
4894 WandExport MagickBooleanType DrawSetFillPatternURL(DrawingWand *wand, in DrawSetFillPatternURL() argument
4901 assert(wand != (DrawingWand *) NULL); in DrawSetFillPatternURL()
4902 assert(wand->signature == MagickWandSignature); in DrawSetFillPatternURL()
4903 if (wand->debug != MagickFalse) in DrawSetFillPatternURL()
4905 if (wand->image == (Image *) NULL) in DrawSetFillPatternURL()
4906 ThrowDrawException(WandError,"ContainsNoImages",wand->name); in DrawSetFillPatternURL()
4914 if (GetImageArtifact(wand->image,pattern) == (const char *) NULL) in DrawSetFillPatternURL()
4921 DrawPatternPath(wand->image,CurrentContext,pattern_spec, in DrawSetFillPatternURL()
4926 (void) MVGPrintf(wand,"fill %s\n",pattern_spec); in DrawSetFillPatternURL()
4954 WandExport void DrawSetFillRule(DrawingWand *wand,const FillRule fill_rule) in DrawSetFillRule() argument
4956 assert(wand != (DrawingWand *) NULL); in DrawSetFillRule()
4957 assert(wand->signature == MagickWandSignature); in DrawSetFillRule()
4958 if (wand->debug != MagickFalse) in DrawSetFillRule()
4959 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetFillRule()
4960 if ((wand->filter_off != MagickFalse) || in DrawSetFillRule()
4964 (void) MVGPrintf(wand, "fill-rule '%s'\n",CommandOptionToMnemonic( in DrawSetFillRule()
4994 WandExport MagickBooleanType DrawSetFont(DrawingWand *wand, in DrawSetFont() argument
4997 assert(wand != (DrawingWand *) NULL); in DrawSetFont()
4998 assert(wand->signature == MagickWandSignature); in DrawSetFont()
4999 if (wand->debug != MagickFalse) in DrawSetFont()
5000 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetFont()
5002 if ((wand->filter_off != MagickFalse) || in DrawSetFont()
5007 (void) MVGPrintf(wand,"font '%s'\n",font_name); in DrawSetFont()
5037 WandExport MagickBooleanType DrawSetFontFamily(DrawingWand *wand, in DrawSetFontFamily() argument
5040 assert(wand != (DrawingWand *) NULL); in DrawSetFontFamily()
5041 assert(wand->signature == MagickWandSignature); in DrawSetFontFamily()
5042 if (wand->debug != MagickFalse) in DrawSetFontFamily()
5043 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetFontFamily()
5045 if ((wand->filter_off != MagickFalse) || in DrawSetFontFamily()
5050 (void) MVGPrintf(wand,"font-family '%s'\n",font_family); in DrawSetFontFamily()
5079 WandExport void DrawSetFontSize(DrawingWand *wand,const double pointsize) in DrawSetFontSize() argument
5081 assert(wand != (DrawingWand *) NULL); in DrawSetFontSize()
5082 assert(wand->signature == MagickWandSignature); in DrawSetFontSize()
5083 if (wand->debug != MagickFalse) in DrawSetFontSize()
5084 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetFontSize()
5085 if ((wand->filter_off != MagickFalse) || in DrawSetFontSize()
5089 (void) MVGPrintf(wand,"font-size %.20g\n",pointsize); in DrawSetFontSize()
5122 WandExport void DrawSetFontStretch(DrawingWand *wand, in DrawSetFontStretch() argument
5125 assert(wand != (DrawingWand *) NULL); in DrawSetFontStretch()
5126 assert(wand->signature == MagickWandSignature); in DrawSetFontStretch()
5127 if (wand->debug != MagickFalse) in DrawSetFontStretch()
5128 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetFontStretch()
5129 if ((wand->filter_off != MagickFalse) || in DrawSetFontStretch()
5133 (void) MVGPrintf(wand, "font-stretch '%s'\n",CommandOptionToMnemonic( in DrawSetFontStretch()
5163 WandExport void DrawSetFontStyle(DrawingWand *wand,const StyleType style) in DrawSetFontStyle() argument
5165 assert(wand != (DrawingWand *) NULL); in DrawSetFontStyle()
5166 assert(wand->signature == MagickWandSignature); in DrawSetFontStyle()
5167 if (wand->debug != MagickFalse) in DrawSetFontStyle()
5168 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetFontStyle()
5169 if ((wand->filter_off != MagickFalse) || in DrawSetFontStyle()
5173 (void) MVGPrintf(wand, "font-style '%s'\n",CommandOptionToMnemonic( in DrawSetFontStyle()
5203 WandExport void DrawSetFontWeight(DrawingWand *wand, in DrawSetFontWeight() argument
5206 assert(wand != (DrawingWand *) NULL); in DrawSetFontWeight()
5207 assert(wand->signature == MagickWandSignature); in DrawSetFontWeight()
5208 if (wand->debug != MagickFalse) in DrawSetFontWeight()
5209 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetFontWeight()
5210 if ((wand->filter_off != MagickFalse) || in DrawSetFontWeight()
5214 (void) MVGPrintf(wand,"font-weight %.20g\n",(double) font_weight); in DrawSetFontWeight()
5246 WandExport void DrawSetGravity(DrawingWand *wand,const GravityType gravity) in DrawSetGravity() argument
5248 assert(wand != (DrawingWand *) NULL); in DrawSetGravity()
5249 assert(wand->signature == MagickWandSignature); in DrawSetGravity()
5250 if (wand->debug != MagickFalse) in DrawSetGravity()
5251 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetGravity()
5252 if ((wand->filter_off != MagickFalse) || in DrawSetGravity()
5256 (void) MVGPrintf(wand,"gravity '%s'\n",CommandOptionToMnemonic( in DrawSetGravity()
5286 WandExport void DrawSetStrokeColor(DrawingWand *wand, in DrawSetStrokeColor() argument
5294 assert(wand != (DrawingWand *) NULL); in DrawSetStrokeColor()
5295 assert(wand->signature == MagickWandSignature); in DrawSetStrokeColor()
5296 if (wand->debug != MagickFalse) in DrawSetStrokeColor()
5297 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetStrokeColor()
5302 if ((wand->filter_off != MagickFalse) || in DrawSetStrokeColor()
5306 (void) MVGPrintf(wand,"stroke '"); in DrawSetStrokeColor()
5307 MVGAppendColor(wand,&stroke_color); in DrawSetStrokeColor()
5308 (void) MVGPrintf(wand,"'\n"); in DrawSetStrokeColor()
5337 WandExport MagickBooleanType DrawSetStrokePatternURL(DrawingWand *wand, in DrawSetStrokePatternURL() argument
5344 assert(wand != (DrawingWand *) NULL); in DrawSetStrokePatternURL()
5345 assert(wand->signature == MagickWandSignature); in DrawSetStrokePatternURL()
5346 if (wand->debug != MagickFalse) in DrawSetStrokePatternURL()
5347 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetStrokePatternURL()
5348 if (wand->image == (Image *) NULL) in DrawSetStrokePatternURL()
5349 ThrowDrawException(WandError,"ContainsNoImages",wand->name); in DrawSetStrokePatternURL()
5354 if (GetImageArtifact(wand->image,pattern) == (const char *) NULL) in DrawSetStrokePatternURL()
5361 DrawPatternPath(wand->image,CurrentContext,pattern_spec, in DrawSetStrokePatternURL()
5366 (void) MVGPrintf(wand,"stroke %s\n",pattern_spec); in DrawSetStrokePatternURL()
5398 WandExport void DrawSetStrokeAntialias(DrawingWand *wand, in DrawSetStrokeAntialias() argument
5401 assert(wand != (DrawingWand *) NULL); in DrawSetStrokeAntialias()
5402 assert(wand->signature == MagickWandSignature); in DrawSetStrokeAntialias()
5403 if (wand->debug != MagickFalse) in DrawSetStrokeAntialias()
5404 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetStrokeAntialias()
5405 if ((wand->filter_off != MagickFalse) || in DrawSetStrokeAntialias()
5409 (void) MVGPrintf(wand,"stroke-antialias %i\n",stroke_antialias != 0 ? in DrawSetStrokeAntialias()
5447 WandExport MagickBooleanType DrawSetStrokeDashArray(DrawingWand *wand, in DrawSetStrokeDashArray() argument
5466 assert(wand != (DrawingWand *) NULL); in DrawSetStrokeDashArray()
5467 assert(wand->signature == MagickWandSignature); in DrawSetStrokeDashArray()
5468 if (wand->debug != MagickFalse) in DrawSetStrokeDashArray()
5469 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetStrokeDashArray()
5501 if ((wand->filter_off != MagickFalse) || (update != MagickFalse)) in DrawSetStrokeDashArray()
5513 wand->name); in DrawSetStrokeDashArray()
5524 (void) MVGPrintf(wand,"stroke-dasharray "); in DrawSetStrokeDashArray()
5526 (void) MVGPrintf(wand,"none\n"); in DrawSetStrokeDashArray()
5533 (void) MVGPrintf(wand,","); in DrawSetStrokeDashArray()
5534 (void) MVGPrintf(wand,"%.20g",dasharray[i]); in DrawSetStrokeDashArray()
5536 (void) MVGPrintf(wand,"\n"); in DrawSetStrokeDashArray()
5568 WandExport void DrawSetStrokeDashOffset(DrawingWand *wand, in DrawSetStrokeDashOffset() argument
5571 assert(wand != (DrawingWand *) NULL); in DrawSetStrokeDashOffset()
5572 assert(wand->signature == MagickWandSignature); in DrawSetStrokeDashOffset()
5573 if (wand->debug != MagickFalse) in DrawSetStrokeDashOffset()
5574 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetStrokeDashOffset()
5575 if ((wand->filter_off != MagickFalse) || in DrawSetStrokeDashOffset()
5579 (void) MVGPrintf(wand,"stroke-dashoffset %.20g\n",dash_offset); in DrawSetStrokeDashOffset()
5610 WandExport void DrawSetStrokeLineCap(DrawingWand *wand,const LineCap linecap) in DrawSetStrokeLineCap() argument
5612 assert(wand != (DrawingWand *) NULL); in DrawSetStrokeLineCap()
5613 assert(wand->signature == MagickWandSignature); in DrawSetStrokeLineCap()
5614 if (wand->debug != MagickFalse) in DrawSetStrokeLineCap()
5615 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetStrokeLineCap()
5616 if ((wand->filter_off != MagickFalse) || (CurrentContext->linecap != linecap)) in DrawSetStrokeLineCap()
5619 (void) MVGPrintf(wand,"stroke-linecap '%s'\n",CommandOptionToMnemonic( in DrawSetStrokeLineCap()
5651 WandExport void DrawSetStrokeLineJoin(DrawingWand *wand,const LineJoin linejoin) in DrawSetStrokeLineJoin() argument
5653 assert(wand != (DrawingWand *) NULL); in DrawSetStrokeLineJoin()
5654 assert(wand->signature == MagickWandSignature); in DrawSetStrokeLineJoin()
5655 if (wand->debug != MagickFalse) in DrawSetStrokeLineJoin()
5656 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetStrokeLineJoin()
5657 if ((wand->filter_off != MagickFalse) || in DrawSetStrokeLineJoin()
5661 (void) MVGPrintf(wand, "stroke-linejoin '%s'\n",CommandOptionToMnemonic( in DrawSetStrokeLineJoin()
5695 WandExport void DrawSetStrokeMiterLimit(DrawingWand *wand, in DrawSetStrokeMiterLimit() argument
5698 assert(wand != (DrawingWand *) NULL); in DrawSetStrokeMiterLimit()
5699 assert(wand->signature == MagickWandSignature); in DrawSetStrokeMiterLimit()
5700 if (wand->debug != MagickFalse) in DrawSetStrokeMiterLimit()
5701 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetStrokeMiterLimit()
5705 (void) MVGPrintf(wand,"stroke-miterlimit %.20g\n",(double) miterlimit); in DrawSetStrokeMiterLimit()
5734 WandExport void DrawSetStrokeOpacity(DrawingWand *wand, in DrawSetStrokeOpacity() argument
5740 assert(wand != (DrawingWand *) NULL); in DrawSetStrokeOpacity()
5741 assert(wand->signature == MagickWandSignature); in DrawSetStrokeOpacity()
5742 if (wand->debug != MagickFalse) in DrawSetStrokeOpacity()
5743 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetStrokeOpacity()
5745 if ((wand->filter_off != MagickFalse) || in DrawSetStrokeOpacity()
5749 (void) MVGPrintf(wand,"stroke-opacity %.20g\n",opacity); in DrawSetStrokeOpacity()
5779 WandExport void DrawSetStrokeWidth(DrawingWand *wand,const double stroke_width) in DrawSetStrokeWidth() argument
5781 assert(wand != (DrawingWand *) NULL); in DrawSetStrokeWidth()
5782 assert(wand->signature == MagickWandSignature); in DrawSetStrokeWidth()
5783 if (wand->debug != MagickFalse) in DrawSetStrokeWidth()
5784 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetStrokeWidth()
5785 if ((wand->filter_off != MagickFalse) || in DrawSetStrokeWidth()
5789 (void) MVGPrintf(wand,"stroke-width %.20g\n",stroke_width); in DrawSetStrokeWidth()
5819 WandExport void DrawSetTextAlignment(DrawingWand *wand, in DrawSetTextAlignment() argument
5822 assert(wand != (DrawingWand *) NULL); in DrawSetTextAlignment()
5823 assert(wand->signature == MagickWandSignature); in DrawSetTextAlignment()
5824 if (wand->debug != MagickFalse) in DrawSetTextAlignment()
5825 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetTextAlignment()
5826 if ((wand->filter_off != MagickFalse) || in DrawSetTextAlignment()
5830 (void) MVGPrintf(wand,"text-align '%s'\n",CommandOptionToMnemonic( in DrawSetTextAlignment()
5862 WandExport void DrawSetTextAntialias(DrawingWand *wand, in DrawSetTextAntialias() argument
5865 assert(wand != (DrawingWand *) NULL); in DrawSetTextAntialias()
5866 assert(wand->signature == MagickWandSignature); in DrawSetTextAntialias()
5867 if (wand->debug != MagickFalse) in DrawSetTextAntialias()
5868 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetTextAntialias()
5869 if ((wand->filter_off != MagickFalse) || in DrawSetTextAntialias()
5873 (void) MVGPrintf(wand,"text-antialias %i\n",text_antialias != 0 ? 1 : 0); in DrawSetTextAntialias()
5904 WandExport void DrawSetTextDecoration(DrawingWand *wand, in DrawSetTextDecoration() argument
5907 assert(wand != (DrawingWand *) NULL); in DrawSetTextDecoration()
5908 assert(wand->signature == MagickWandSignature); in DrawSetTextDecoration()
5909 if (wand->debug != MagickFalse) in DrawSetTextDecoration()
5910 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetTextDecoration()
5911 if ((wand->filter_off != MagickFalse) || in DrawSetTextDecoration()
5915 (void) MVGPrintf(wand,"decorate '%s'\n",CommandOptionToMnemonic( in DrawSetTextDecoration()
5947 WandExport void DrawSetTextDirection(DrawingWand *wand, in DrawSetTextDirection() argument
5950 assert(wand != (DrawingWand *) NULL); in DrawSetTextDirection()
5951 assert(wand->signature == MagickWandSignature); in DrawSetTextDirection()
5953 if (wand->debug != MagickFalse) in DrawSetTextDirection()
5954 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetTextDirection()
5955 if ((wand->filter_off != MagickFalse) || in DrawSetTextDirection()
5959 (void) MVGPrintf(wand,"direction '%s'\n",CommandOptionToMnemonic( in DrawSetTextDirection()
5993 WandExport void DrawSetTextEncoding(DrawingWand *wand,const char *encoding) in DrawSetTextEncoding() argument
5995 assert(wand != (DrawingWand *) NULL); in DrawSetTextEncoding()
5996 assert(wand->signature == MagickWandSignature); in DrawSetTextEncoding()
5997 if (wand->debug != MagickFalse) in DrawSetTextEncoding()
5998 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetTextEncoding()
6000 if ((wand->filter_off != MagickFalse) || in DrawSetTextEncoding()
6005 (void) MVGPrintf(wand,"encoding '%s'\n",encoding); in DrawSetTextEncoding()
6033 WandExport void DrawSetTextKerning(DrawingWand *wand,const double kerning) in DrawSetTextKerning() argument
6035 assert(wand != (DrawingWand *) NULL); in DrawSetTextKerning()
6036 assert(wand->signature == MagickWandSignature); in DrawSetTextKerning()
6038 if (wand->debug != MagickFalse) in DrawSetTextKerning()
6039 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetTextKerning()
6040 if ((wand->filter_off != MagickFalse) && in DrawSetTextKerning()
6044 (void) MVGPrintf(wand,"kerning %lf\n",kerning); in DrawSetTextKerning()
6073 WandExport void DrawSetTextInterlineSpacing(DrawingWand *wand, in DrawSetTextInterlineSpacing() argument
6076 assert(wand != (DrawingWand *) NULL); in DrawSetTextInterlineSpacing()
6077 assert(wand->signature == MagickWandSignature); in DrawSetTextInterlineSpacing()
6079 if (wand->debug != MagickFalse) in DrawSetTextInterlineSpacing()
6080 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetTextInterlineSpacing()
6081 if ((wand->filter_off != MagickFalse) && in DrawSetTextInterlineSpacing()
6085 (void) MVGPrintf(wand,"interline-spacing %lf\n",interline_spacing); in DrawSetTextInterlineSpacing()
6114 WandExport void DrawSetTextInterwordSpacing(DrawingWand *wand, in DrawSetTextInterwordSpacing() argument
6117 assert(wand != (DrawingWand *) NULL); in DrawSetTextInterwordSpacing()
6118 assert(wand->signature == MagickWandSignature); in DrawSetTextInterwordSpacing()
6120 if (wand->debug != MagickFalse) in DrawSetTextInterwordSpacing()
6121 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetTextInterwordSpacing()
6122 if ((wand->filter_off != MagickFalse) && in DrawSetTextInterwordSpacing()
6126 (void) MVGPrintf(wand,"interword-spacing %lf\n",interword_spacing); in DrawSetTextInterwordSpacing()
6156 WandExport void DrawSetTextUnderColor(DrawingWand *wand, in DrawSetTextUnderColor() argument
6162 assert(wand != (DrawingWand *) NULL); in DrawSetTextUnderColor()
6163 assert(wand->signature == MagickWandSignature); in DrawSetTextUnderColor()
6164 if (wand->debug != MagickFalse) in DrawSetTextUnderColor()
6165 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetTextUnderColor()
6168 if ((wand->filter_off != MagickFalse) || in DrawSetTextUnderColor()
6172 (void) MVGPrintf(wand,"text-undercolor '"); in DrawSetTextUnderColor()
6173 MVGAppendColor(wand,&under_color); in DrawSetTextUnderColor()
6174 (void) MVGPrintf(wand,"'\n"); in DrawSetTextUnderColor()
6219 WandExport MagickBooleanType DrawSetVectorGraphics(DrawingWand *wand, in DrawSetVectorGraphics() argument
6229 assert(wand != (DrawingWand *) NULL); in DrawSetVectorGraphics()
6230 assert(wand->signature == MagickWandSignature); in DrawSetVectorGraphics()
6231 if (wand->debug != MagickFalse) in DrawSetVectorGraphics()
6232 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetVectorGraphics()
6237 xml_info=NewXMLTree(xml,wand->exception); in DrawSetVectorGraphics()
6268 wand->exception); in DrawSetVectorGraphics()
6344 wand->exception); in DrawSetVectorGraphics()
6395 "MemoryAllocationFailed",wand->name); in DrawSetVectorGraphics()
6479 &CurrentContext->undercolor,wand->exception); in DrawSetVectorGraphics()
6484 (void) CloneString(&wand->mvg,GetXMLTreeContent(child)); in DrawSetVectorGraphics()
6485 wand->mvg_length=strlen(wand->mvg); in DrawSetVectorGraphics()
6486 wand->mvg_alloc=wand->mvg_length+1; in DrawSetVectorGraphics()
6517 WandExport void DrawSkewX(DrawingWand *wand,const double degrees) in DrawSkewX() argument
6519 assert(wand != (DrawingWand *) NULL); in DrawSkewX()
6520 assert(wand->signature == MagickWandSignature); in DrawSkewX()
6521 if (wand->debug != MagickFalse) in DrawSkewX()
6522 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSkewX()
6523 (void) MVGPrintf(wand,"skewX %.20g\n",degrees); in DrawSkewX()
6551 WandExport void DrawSkewY(DrawingWand *wand,const double degrees) in DrawSkewY() argument
6553 assert(wand != (DrawingWand *) NULL); in DrawSkewY()
6554 assert(wand->signature == MagickWandSignature); in DrawSkewY()
6555 if (wand->debug != MagickFalse) in DrawSkewY()
6556 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSkewY()
6557 (void) MVGPrintf(wand,"skewY %.20g\n",degrees); in DrawSkewY()
6589 WandExport void DrawTranslate(DrawingWand *wand,const double x,const double y) in DrawTranslate() argument
6591 assert(wand != (DrawingWand *) NULL); in DrawTranslate()
6592 assert(wand->signature == MagickWandSignature); in DrawTranslate()
6593 if (wand->debug != MagickFalse) in DrawTranslate()
6594 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawTranslate()
6595 (void) MVGPrintf(wand,"translate %.20g %.20g\n",x,y); in DrawTranslate()
6633 WandExport void DrawSetViewbox(DrawingWand *wand,const double x1, in DrawSetViewbox() argument
6636 assert(wand != (DrawingWand *) NULL); in DrawSetViewbox()
6637 assert(wand->signature == MagickWandSignature); in DrawSetViewbox()
6638 if (wand->debug != MagickFalse) in DrawSetViewbox()
6639 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in DrawSetViewbox()
6640 (void) MVGPrintf(wand,"viewbox %.20g %.20g %.20g %.20g\n",x1,y1,x2,y2); in DrawSetViewbox()
6665 WandExport MagickBooleanType IsDrawingWand(const DrawingWand *wand) in IsDrawingWand() argument
6667 if (wand == (const DrawingWand *) NULL) in IsDrawingWand()
6669 if (wand->signature != MagickWandSignature) in IsDrawingWand()
6671 if (LocaleNCompare(wand->name,DrawingWandId,strlen(DrawingWandId)) != 0) in IsDrawingWand()
6701 *wand; in NewDrawingWand() local
6709 wand=(DrawingWand *) AcquireMagickMemory(sizeof(*wand)); in NewDrawingWand()
6710 if (wand == (DrawingWand *) NULL) in NewDrawingWand()
6713 (void) ResetMagickMemory(wand,0,sizeof(*wand)); in NewDrawingWand()
6714 wand->id=AcquireWandId(); in NewDrawingWand()
6715 (void) FormatLocaleString(wand->name,MagickPathExtent,"%s-%.20g", in NewDrawingWand()
6716 DrawingWandId,(double) wand->id); in NewDrawingWand()
6717 if (wand->debug != MagickFalse) in NewDrawingWand()
6718 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in NewDrawingWand()
6719 wand->mvg=(char *) NULL; in NewDrawingWand()
6720 wand->mvg_alloc=0; in NewDrawingWand()
6721 wand->mvg_length=0; in NewDrawingWand()
6722 wand->mvg_width=0; in NewDrawingWand()
6723 wand->pattern_id=(char *) NULL; in NewDrawingWand()
6724 wand->pattern_offset=0; in NewDrawingWand()
6725 wand->pattern_bounds.x=0; in NewDrawingWand()
6726 wand->pattern_bounds.y=0; in NewDrawingWand()
6727 wand->pattern_bounds.width=0; in NewDrawingWand()
6728 wand->pattern_bounds.height=0; in NewDrawingWand()
6729 wand->index=0; in NewDrawingWand()
6730 wand->graphic_context=(DrawInfo **) AcquireMagickMemory(sizeof( in NewDrawingWand()
6731 *wand->graphic_context)); in NewDrawingWand()
6732 if (wand->graphic_context == (DrawInfo **) NULL) in NewDrawingWand()
6735 wand->filter_off=MagickTrue; in NewDrawingWand()
6736 wand->indent_depth=0; in NewDrawingWand()
6737 wand->path_operation=PathDefaultOperation; in NewDrawingWand()
6738 wand->path_mode=DefaultPathMode; in NewDrawingWand()
6739 wand->exception=AcquireExceptionInfo(); in NewDrawingWand()
6740 wand->image=AcquireImage((const ImageInfo *) NULL,wand->exception); in NewDrawingWand()
6741 wand->destroy=MagickTrue; in NewDrawingWand()
6742 wand->debug=IsEventLogging(); in NewDrawingWand()
6743 wand->signature=MagickWandSignature; in NewDrawingWand()
6745 return(wand); in NewDrawingWand()
6770 WandExport DrawInfo *PeekDrawingWand(const DrawingWand *wand) in PeekDrawingWand() argument
6775 assert(wand != (const DrawingWand *) NULL); in PeekDrawingWand()
6776 assert(wand->signature == MagickWandSignature); in PeekDrawingWand()
6777 if (wand->debug != MagickFalse) in PeekDrawingWand()
6778 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in PeekDrawingWand()
6781 (void) CloneString(&draw_info->primitive,wand->mvg); in PeekDrawingWand()
6810 WandExport MagickBooleanType PopDrawingWand(DrawingWand *wand) in PopDrawingWand() argument
6812 assert(wand != (DrawingWand *) NULL); in PopDrawingWand()
6813 assert(wand->signature == MagickWandSignature); in PopDrawingWand()
6814 if (wand->debug != MagickFalse) in PopDrawingWand()
6815 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in PopDrawingWand()
6816 if (wand->index == 0) in PopDrawingWand()
6818 ThrowDrawException(DrawError,"UnbalancedGraphicContextPushPop",wand->name) in PopDrawingWand()
6825 if (wand->image == (Image *) NULL) in PopDrawingWand()
6826 ThrowDrawException(WandError,"ContainsNoImages",wand->name); in PopDrawingWand()
6829 wand->graphic_context[wand->index-1]->clip_mask) != 0) in PopDrawingWand()
6830 (void) SetImageMask(wand->image,ReadPixelMask,(Image *) NULL, in PopDrawingWand()
6831 wand->exception); in PopDrawingWand()
6834 wand->index--; in PopDrawingWand()
6835 if (wand->indent_depth > 0) in PopDrawingWand()
6836 wand->indent_depth--; in PopDrawingWand()
6837 (void) MVGPrintf(wand,"pop graphic-context\n"); in PopDrawingWand()
6866 WandExport MagickBooleanType PushDrawingWand(DrawingWand *wand) in PushDrawingWand() argument
6868 assert(wand != (DrawingWand *) NULL); in PushDrawingWand()
6869 assert(wand->signature == MagickWandSignature); in PushDrawingWand()
6870 if (wand->debug != MagickFalse) in PushDrawingWand()
6871 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); in PushDrawingWand()
6872 wand->index++; in PushDrawingWand()
6873 wand->graphic_context=(DrawInfo **) ResizeQuantumMemory(wand->graphic_context, in PushDrawingWand()
6874 (size_t) wand->index+1UL,sizeof(*wand->graphic_context)); in PushDrawingWand()
6875 if (wand->graphic_context == (DrawInfo **) NULL) in PushDrawingWand()
6877 wand->index--; in PushDrawingWand()
6879 wand->name); in PushDrawingWand()
6883 wand->graphic_context[wand->index-1]); in PushDrawingWand()
6884 (void) MVGPrintf(wand,"push graphic-context\n"); in PushDrawingWand()
6885 wand->indent_depth++; in PushDrawingWand()