% March 2003 %
% %
% %
-% Copyright 1999-2014 ImageMagick Studio LLC, a non-profit organization %
+% Copyright 1999-2015 ImageMagick Studio LLC, a non-profit organization %
% dedicated to making software imaging solutions freely available. %
% %
% You may not use this file except in compliance with the License. You may %
id;
char
- name[MaxTextExtent];
+ name[MagickPathExtent];
ExceptionInfo
*exception;
wand->name);
(void) ResetMagickMemory(clone_wand,0,sizeof(*clone_wand));
clone_wand->id=AcquireWandId();
- (void) FormatLocaleString(clone_wand->name,MaxTextExtent,"%s-%.20g",
+ (void) FormatLocaleString(clone_wand->name,MagickPathExtent,"%s-%.20g",
PixelWandId,(double) clone_wand->id);
clone_wand->exception=AcquireExceptionInfo();
InheritException(clone_wand->exception,wand->exception);
GetExceptionMessage(errno));
(void) ResetMagickMemory(wand,0,sizeof(*wand));
wand->id=AcquireWandId();
- (void) FormatLocaleString(wand->name,MaxTextExtent,"%s-%.20g",PixelWandId,
+ (void) FormatLocaleString(wand->name,MagickPathExtent,"%s-%.20g",PixelWandId,
(double) wand->id);
wand->exception=AcquireExceptionInfo();
GetPixelInfo((Image *) NULL,&wand->pixel);
WandExport char *PixelGetColorAsNormalizedString(const PixelWand *wand)
{
char
- color[2*MaxTextExtent];
+ color[2*MagickPathExtent];
assert(wand != (const PixelWand *) NULL);
assert(wand->signature == WandSignature);
if (wand->debug != MagickFalse)
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
- (void) FormatLocaleString(color,MaxTextExtent,"%g,%g,%g",
+ (void) FormatLocaleString(color,MagickPathExtent,"%g,%g,%g",
(double) (QuantumScale*wand->pixel.red),
(double) (QuantumScale*wand->pixel.green),
(double) (QuantumScale*wand->pixel.blue));
if (wand->pixel.colorspace == CMYKColorspace)
- (void) FormatLocaleString(color+strlen(color),MaxTextExtent,",%g",
+ (void) FormatLocaleString(color+strlen(color),MagickPathExtent,",%g",
(double) (QuantumScale*wand->pixel.black));
if (wand->pixel.alpha_trait != UndefinedPixelTrait)
- (void) FormatLocaleString(color+strlen(color),MaxTextExtent,",%g",
+ (void) FormatLocaleString(color+strlen(color),MagickPathExtent,",%g",
(double) (QuantumScale*wand->pixel.alpha));
return(ConstantString(color));
}
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
assert(severity != (ExceptionType *) NULL);
*severity=wand->exception->severity;
- description=(char *) AcquireQuantumMemory(2UL*MaxTextExtent,
+ description=(char *) AcquireQuantumMemory(2UL*MagickPathExtent,
sizeof(*description));
if (description == (char *) NULL)
ThrowWandFatalException(ResourceLimitFatalError,"MemoryAllocationFailed",
*description='\0';
if (wand->exception->reason != (char *) NULL)
(void) CopyMagickString(description,GetLocaleExceptionMessage(
- wand->exception->severity,wand->exception->reason),MaxTextExtent);
+ wand->exception->severity,wand->exception->reason),MagickPathExtent);
if (wand->exception->description != (char *) NULL)
{
- (void) ConcatenateMagickString(description," (",MaxTextExtent);
+ (void) ConcatenateMagickString(description," (",MagickPathExtent);
(void) ConcatenateMagickString(description,GetLocaleExceptionMessage(
- wand->exception->severity,wand->exception->description),MaxTextExtent);
- (void) ConcatenateMagickString(description,")",MaxTextExtent);
+ wand->exception->severity,wand->exception->description),MagickPathExtent);
+ (void) ConcatenateMagickString(description,")",MagickPathExtent);
}
return(description);
}
if (wand->debug != MagickFalse)
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
assert(packet != (PixelInfo *) NULL);
+ packet->depth=wand->pixel.depth;
packet->fuzz=wand->pixel.fuzz;
packet->alpha=(double) ClampToQuantum(wand->pixel.alpha);
packet->alpha_trait=wand->pixel.alpha_trait;