clone_info->stroke_width=0.0;
clone_info->alpha=OpaqueAlpha;
clone_info->clip_path=MagickTrue;
- status=RenderMVGContent(clip_mask,clone_info,1,exception);
+ status=RenderMVGContent(clip_mask,clone_info,0,exception);
clone_info=DestroyDrawInfo(clone_info);
separate_mask=SeparateImage(clip_mask,AlphaChannel,exception);
if (separate_mask != (Image *) NULL)
exception);
clone_info->stroke_width=0.0;
clone_info->alpha=OpaqueAlpha;
- status=RenderMVGContent(composite_mask,clone_info,1,exception);
+ status=RenderMVGContent(composite_mask,clone_info,0,exception);
clone_info=DestroyDrawInfo(clone_info);
separate_mask=SeparateImage(composite_mask,AlphaChannel,exception);
if (separate_mask != (Image *) NULL)
static SplayTreeInfo *GetMVGMacros(const char *primitive)
{
char
+ *macro,
*token;
const char
return((SplayTreeInfo *) NULL);
macros=NewSplayTree(CompareSplayTreeString,RelinquishMagickMemory,
RelinquishMagickMemory);
+ macro=AcquireString(primitive);
token=AcquireString(primitive);
extent=strlen(token)+MagickPathExtent;
for (q=primitive; *q != '\0'; )
*p;
ssize_t
- n;
+ n;
/*
Named macro (e.g. push graphic-context "wheel").
n++;
if ((n == 0) && (end > start))
{
- char
- *macro;
-
/*
Extract macro.
*/
GetNextToken(p,&p,extent,token);
- macro=AcquireString(start);
- macro[end-start]='\0';
+ (void) CopyMagickString(macro,start,end-start);
(void) AddValueToSplayTree(macros,ConstantString(name),
ConstantString(macro));
- macro=DestroyString(macro);
break;
}
}
}
}
token=DestroyString(token);
+ macro=DestroyString(macro);
return(macros);
}
MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info,
ExceptionInfo *exception)
{
- return(RenderMVGContent(image,draw_info,1,exception));
+ return(RenderMVGContent(image,draw_info,0,exception));
}
\f
/*
clone_info->gradient.type=(GradientType) ParseCommandOption(
MagickGradientOptions,MagickFalse,type);
(void) CloneString(&clone_info->primitive,path);
- status=RenderMVGContent(*pattern,clone_info,1,exception);
+ status=RenderMVGContent(*pattern,clone_info,0,exception);
clone_info=DestroyDrawInfo(clone_info);
if (image->debug != MagickFalse)
(void) LogMagickEvent(DrawEvent,GetMagickModule(),"end pattern-path");
register ssize_t
i;
- size_t
- length;
-
assert(start != (const char *) NULL);
assert(token != (char *) NULL);
i=0;
- length=strlen(start);
p=start;
while ((isspace((int) ((unsigned char) *p)) != 0) && (*p != '\0'))
p++;
}
if (i < (ssize_t) (extent-1))
token[i++]=(*p);
- if ((size_t) (p-start) >= length)
+ if ((size_t) (p-start) >= (extent-1))
break;
}
break;
{
if (i < (ssize_t) (extent-1))
token[i++]=(*p);
- if ((size_t) (p-start) >= length)
+ if ((size_t) (p-start) >= (extent-1))
break;
}
if (*p == '%')
token[i++]=(*p);
if ((*p == ')') && (*(p-1) != '\\'))
break;
- if ((size_t) (p-start) >= length)
+ if ((size_t) (p-start) >= (extent-1))
break;
}
- if ((size_t) (p-start) >= length)
+ if ((size_t) (p-start) >= (extent-1))
break;
}
break;