assert(image != (Image *) NULL);
assert(image->signature == MagickSignature);
- if (IfTrue(image->debug))
+ if (IfMagickTrue(image->debug))
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
assert(exception != (ExceptionInfo *) NULL);
assert(exception->signature == MagickSignature);
(image->colorspace == CMYKColorspace))
number_colors++;
if (((GetPixelAlphaTraits(image) & UpdatePixelTrait) != 0) &&
- IfTrue(image->matte))
+ IfMagickTrue(image->matte))
number_colors++;
/*
x++; /* floating point argument */
}
/* control points and color values */
- error = IsTrue( x % (2+number_colors) );
+ error = IsMagickTrue( x % (2+number_colors) );
number_arguments=x;
- if ( IfTrue(error) ) {
+ if ( IfMagickTrue(error) ) {
(void) ThrowMagickException(exception,GetMagickModule(),
OptionError, "InvalidArgument", "'%s': %s", "sparse-color",
"Invalid number of Arguments");
(image->colorspace == CMYKColorspace))
sparse_arguments[x++] = QuantumScale*color.black;
if (((GetPixelAlphaTraits(image) & UpdatePixelTrait) != 0) &&
- IfTrue(image->matte))
+ IfMagickTrue(image->matte))
sparse_arguments[x++] = QuantumScale*color.alpha;
}
else {
token[0] = ','; /* used this token - get another */
}
if (((GetPixelAlphaTraits(image) & UpdatePixelTrait) != 0) &&
- IfTrue(image->matte))
+ IfMagickTrue(image->matte))
{
while ( token[0] == ',' ) GetMagickToken(p,&p,token);
if ( token[0] == '\0' || isalpha((int)token[0]) || token[0] == '#' )
cli_wand->column=0;
cli_wand->signature=WandSignature;
- if (IfTrue(cli_wand->wand.debug))
+ if (IfMagickTrue(cli_wand->wand.debug))
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",cli_wand->wand.name);
return(cli_wand);
}
assert(cli_wand != (MagickCLI *) NULL);
assert(cli_wand->signature == WandSignature);
assert(cli_wand->wand.signature == WandSignature);
- if (IfTrue(cli_wand->wand.debug))
+ if (IfMagickTrue(cli_wand->wand.debug))
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",cli_wand->wand.name);
/* Destroy CLI part of MagickCLI */
assert(cli_wand != (MagickCLI *) NULL);
assert(cli_wand->signature == WandSignature);
assert(cli_wand->wand.signature == WandSignature);
- if (IfTrue(cli_wand->wand.debug))
+ if (IfMagickTrue(cli_wand->wand.debug))
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",cli_wand->wand.name);
// FUTURE: '-regard_warning' should make this more sensitive.
// Note pipelined options may like more control over this level
- status = IsTrue(cli_wand->wand.exception->severity > ErrorException);
+ status = IsMagickTrue(cli_wand->wand.exception->severity > ErrorException);
- if ( IfFalse(status) || IfTrue(all_exceptions) )
+ if ( IfMagickFalse(status) || IfMagickTrue(all_exceptions) )
CatchException(cli_wand->wand.exception); /* output and clear exceptions */
return(status);
assert(cli_wand != (MagickCLI *) NULL);
assert(cli_wand->signature == WandSignature);
assert(cli_wand->wand.signature == WandSignature);
- if (IfTrue(cli_wand->wand.debug))
+ if (IfMagickTrue(cli_wand->wand.debug))
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",cli_wand->wand.name);
#define _image_info (cli_wand->wand.image_info)
#define _draw_info (cli_wand->draw_info)
#define _quantize_info (cli_wand->quantize_info)
#define IfSetOption (*option=='-')
-#define ArgBoolean IsTrue(IfSetOption)
-#define ArgBooleanNot IsFalse(IfSetOption)
+#define ArgBoolean IsMagickTrue(IfSetOption)
+#define ArgBooleanNot IsMagickFalse(IfSetOption)
#define ArgBooleanString (IfSetOption?"true":"false")
#define ArgOption(def) (IfSetOption?arg1:(const char *)(def))
}
if (LocaleCompare("attenuate",option+1) == 0)
{
- if (IfSetOption && IfFalse(IsGeometry(arg1)))
+ if (IfSetOption && IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) SetImageOption(_image_info,option+1,ArgOption("1.0"));
break;
SyncImageSettings() used to set per-image attribute.
*/
- if (IfSetOption && IfFalse(IsGeometry(arg1)))
+ if (IfSetOption && IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) SetImageOption(_image_info,"convolve:bias",ArgOption(NULL));
break;
SyncImageSettings() used to set per-image attribute.
*/
arg1=ArgOption("0.0");
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) SetImageOption(_image_info,option+1,arg1);
break;
MagickSizeType
limit;
- if (IfSetOption && IfFalse(IsGeometry(arg1)))
+ if (IfSetOption && IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
limit=MagickResourceInfinity;
if (LocaleCompare("unlimited",arg1) != 0)
/* DefineImageOption() equals SetImageOption() but with '=' */
if (IfSetOption)
(void) DefineImageOption(_image_info,arg1);
- else if (IsFalse(DeleteImageOption(_image_info,arg1)))
+ else if (IsMagickFalse(DeleteImageOption(_image_info,arg1)))
CLIWandExceptArgBreak(OptionError,"NoSuchOption",option,arg1);
break;
}
FUTURE: Option should also be used for "-morph" (color morphing)
*/
arg1=ArgOption("0");
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) SetImageOption(_image_info,option+1,arg1);
break;
SyncImageSettings() used to set per-image attribute.
*/
- if (IfSetOption && IfFalse(IsGeometry(arg1)))
+ if (IfSetOption && IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) SetImageOption(_image_info,option+1,ArgOption(NULL));
(void) CloneString(&_image_info->density,ArgOption(NULL));
/* This is also a SimpleImageOperator! for 8->16 vaule trunc !!!!
SyncImageSettings() used to set per-image attribute.
*/
- if (IfSetOption && IfFalse(IsGeometry(arg1)))
+ if (IfSetOption && IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
_image_info->depth=IfSetOption?StringToUnsignedLong(arg1)
:MAGICKCORE_QUANTUM_DEPTH;
status=QueryColorCompliance(arg1,AllCompliance,&color,sans);
sans=DestroyExceptionInfo(sans);
- if (IfFalse(status))
+ if (IfMagickFalse(status))
_draw_info->fill_pattern=GetImageCache(_image_info,arg1,_exception);
else
_draw_info->fill=color;
remove direct sttribute from image_info
*/
arg1=ArgOption("0");
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
_image_info->fuzz=StringToDoubleInterval(arg1,(double)
QuantumRange+1.0);
Used directly by many coders
*/
arg1=ArgOption("0.0");
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) SetImageOption(_image_info,option+1,arg1);
break;
}
if (LocaleCompare("interline-spacing",option+1) == 0)
{
- if (IfSetOption && IfFalse(IsGeometry(arg1)))
+ if (IfSetOption && IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) SetImageOption(_image_info,option+1, ArgOption(NULL));
_draw_info->interline_spacing=StringToDouble(ArgOption("0"),
}
if (LocaleCompare("interword-spacing",option+1) == 0)
{
- if (IfSetOption && IfFalse(IsGeometry(arg1)))
+ if (IfSetOption && IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) SetImageOption(_image_info,option+1, ArgOption(NULL));
_draw_info->interword_spacing=StringToDouble(ArgOption("0"),(char **) NULL);
{
if (LocaleCompare("kerning",option+1) == 0)
{
- if (IfSetOption && IfFalse(IsGeometry(arg1)))
+ if (IfSetOption && IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) SetImageOption(_image_info,option+1,ArgOption(NULL));
_draw_info->kerning=StringToDouble(ArgOption("0"),(char **) NULL);
{
/* SyncImageSettings() used to set per-image attribute. */
arg1=ArgOption("0");
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) SetImageOption(_image_info,option+1,arg1);
break;
if (LocaleCompare("pointsize",option+1) == 0)
{
if (IfSetOption) {
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
_image_info->pointsize =
_draw_info->pointsize =
if (LocaleCompare("precision",option+1) == 0)
{
arg1=ArgOption("-1");
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) SetMagickPrecision(StringToInteger(arg1));
break;
{
if (LocaleCompare("quality",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
_image_info->quality= IfSetOption ? StringToUnsignedLong(arg1)
: UNDEFINED_COMPRESSION_QUALITY;
SyncImageSettings() used to set per-image attribute.
*/
arg1=ArgOption("0.0");
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) SetImageOption(_image_info,option+1,arg1);
break;
if (LocaleCompare("sampling-factor",option+1) == 0)
{
/* FUTURE: should be converted to jpeg:sampling_factor */
- if (IfSetOption && IfFalse(IsGeometry(arg1)))
+ if (IfSetOption && IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) CloneString(&_image_info->sampling_factor,ArgOption(NULL));
break;
/* SyncImageSettings() used to set this as a per-image attribute.
What ??? Why ????
*/
- if (IfSetOption && IfFalse(IsGeometry(arg1)))
+ if (IfSetOption && IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) SetImageOption(_image_info,option+1,ArgOption(NULL));
_image_info->scene=StringToUnsignedLong(ArgOption("0"));
}
if (LocaleCompare("seed",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
SeedPseudoRandomGenerator(
IfSetOption ? (size_t) StringToUnsignedLong(arg1)
status=QueryColorCompliance(arg1,AllCompliance,&color,sans);
sans=DestroyExceptionInfo(sans);
- if (IfFalse(status))
+ if (IfMagickFalse(status))
_draw_info->stroke_pattern=GetImageCache(_image_info,arg1,_exception);
else
_draw_info->stroke=color;
}
if (LocaleCompare("strokewidth",option+1) == 0)
{
- if (IfSetOption && IfFalse(IsGeometry(arg1)))
+ if (IfSetOption && IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) SetImageOption(_image_info,option+1,ArgOption(NULL));
_draw_info->stroke_width=StringToDouble(ArgOption("1.0"),
{
/* SyncImageSettings() used to set per-image attribute. ??? */
arg1=ArgOption("0");
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) SetImageOption(_image_info,option+1,arg1);
break;
Note that +transparent-color, means fall-back to image
attribute so ImageOption is deleted, not set to a default.
*/
- if (IfSetOption && IfFalse(IsGeometry(arg1)))
+ if (IfSetOption && IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) SetImageOption(_image_info,option+1,ArgOption(NULL));
(void) QueryColorCompliance(ArgOption("none"),AllCompliance,
SyncImageSettings() used to set per-image attribute.
*/
arg1=ArgOption("0.0");
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) SetImageOption(_image_info,option+1,arg1);
break;
#define _quantize_info (cli_wand->quantize_info)
#define IfNormalOp (*option=='-')
#define IfPlusOp (*option!='-')
-#define normal_op IsTrue(IfNormalOp)
-#define plus_alt_op IsFalse(IfNormalOp)
+#define normal_op IsMagickTrue(IfNormalOp)
+#define plus_alt_op IsMagickFalse(IfNormalOp)
assert(cli_wand != (MagickCLI *) NULL);
assert(cli_wand->signature == WandSignature);
assert(cli_wand->wand.signature == WandSignature);
assert(_image != (Image *) NULL); /* an image must be present */
- if (IfTrue(cli_wand->wand.debug))
+ if (IfMagickTrue(cli_wand->wand.debug))
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",cli_wand->wand.name);
(void) SyncImageSettings(_image_info,_image,_exception);
{
if (LocaleCompare("adaptive-blur",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
if ((flags & SigmaValue) == 0)
if (LocaleCompare("adaptive-resize",option+1) == 0)
{
/* FUTURE: Roll into a resize special operator */
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) ParseRegionGeometry(_image,arg1,&geometry,_exception);
new_image=AdaptiveResizeImage(_image,geometry.width,geometry.height,
}
if (LocaleCompare("adaptive-sharpen",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
if ((flags & SigmaValue) == 0)
*text,
geometry[MaxTextExtent];
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
SetGeometryInfo(&geometry_info);
flags=ParseGeometry(arg1,&geometry_info);
{
if (LocaleCompare("black-threshold",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) BlackThresholdImage(_image,arg1,_exception);
break;
{
geometry_info.rho=1.5;
if (IfNormalOp) {
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
}
}
if (LocaleCompare("blur",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
if ((flags & SigmaValue) == 0)
const char*
value;
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
value=GetImageOption(_image_info,"compose");
MagickStatusType
flags;
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
brightness=geometry_info.rho;
}
if (LocaleCompare("charcoal",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
if ((flags & SigmaValue) == 0)
}
if (LocaleCompare("chop",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) ParseGravityGeometry(_image,arg1,&geometry,_exception);
new_image=ChopImage(_image,&geometry,_exception);
mask_image=GetImageCache(_image_info,arg1,_exception);
if (mask_image == (Image *) NULL)
break;
- if (IfFalse(SetImageStorageClass(mask_image,DirectClass,_exception)))
+ if (IfMagickFalse(SetImageStorageClass(mask_image,DirectClass,_exception)))
break;
/* Create a write mask from cli_wand mask image */
/* FUTURE: use Alpha operations instead and create a Grey Image */
break;
for (x=0; x < (ssize_t) mask_image->columns; x++)
{
- if (IfFalse(mask_image->matte))
+ if (IfMagickFalse(mask_image->matte))
SetPixelAlpha(mask_image,GetPixelIntensity(mask_image,q),q);
SetPixelRed(mask_image,GetPixelAlpha(mask_image,q),q);
SetPixelGreen(mask_image,GetPixelAlpha(mask_image,q),q);
SetPixelBlue(mask_image,GetPixelAlpha(mask_image,q),q);
q+=GetPixelChannels(mask_image);
}
- if (IfFalse(SyncCacheViewAuthenticPixels(mask_view,_exception)))
+ if (IfMagickFalse(SyncCacheViewAuthenticPixels(mask_view,_exception)))
break;
}
/* clean up and set the write mask */
}
if (LocaleCompare("colorize",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
new_image=ColorizeImage(_image,arg1,&_draw_info->fill,_exception);
break;
MagickStatusType
flags;
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
black_point=geometry_info.rho;
if (LocaleCompare("crop",option+1) == 0)
{
/* WARNING: This can generate multiple images! */
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
new_image=CropImageToTiles(_image,arg1,_exception);
break;
}
if (LocaleCompare("cycle",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) CycleColormapImage(_image,(ssize_t) StringToLong(arg1),
_exception);
threshold;
if (IfNormalOp) {
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
threshold=StringToDoubleInterval(arg1,(double) QuantumRange+1.0);
}
** Convert that to an appropriate distortion argument array.
** FUTURE: make a separate special resize operator
Roll into a resize special operator */
- if (IfFalse(IsGeometry(arg2)))
+ if (IfMagickFalse(IsGeometry(arg2)))
CLIWandExceptArgBreak(OptionError,"InvalidGeometry",
option,arg2);
(void) ParseRegionGeometry(_image,arg2,&geometry,_exception);
{
if (LocaleCompare("edge",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
if ((flags & SigmaValue) == 0)
}
if (LocaleCompare("emboss",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
if ((flags & SigmaValue) == 0)
if ( parse < 0 )
CLIWandExceptArgBreak(OptionError,"UnrecognizedEvaluateOperator",
option,arg1);
- if (IfFalse(IsGeometry(arg2)))
+ if (IfMagickFalse(IsGeometry(arg2)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg2);
constant=StringToDoubleInterval(arg2,(double) QuantumRange+1.0);
(void) EvaluateImage(_image,(MagickEvaluateOperator)parse,constant,
}
if (LocaleCompare("extent",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGravityGeometry(_image,arg1,&geometry,_exception);
if (geometry.width == 0)
PixelInfo
target;
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) ParsePageGeometry(_image,arg1,&geometry,_exception);
(void) QueryColorCompliance(arg2,AllCompliance,&target,_exception);
else
compose=OverCompositeOp; /* use Over not _image->compose */
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParsePageGeometry(_image,arg1,&geometry,_exception);
frame_info.width=geometry.width;
{
if (LocaleCompare("gamma",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
if (IfNormalOp)
(void) GammaImage(_image,StringToDouble(arg1,(char **) NULL),
if ((LocaleCompare("gaussian-blur",option+1) == 0) ||
(LocaleCompare("gaussian",option+1) == 0))
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
if ((flags & SigmaValue) == 0)
_image->geometry=DestroyString(_image->geometry);
break;
}
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseRegionGeometry(_image,arg1,&geometry,_exception);
if (((flags & XValue) != 0) || ((flags & YValue) != 0))
}
if (LocaleCompare("implode",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) ParseGeometry(arg1,&geometry_info);
new_image=ImplodeImage(_image,geometry_info.rho,
{
/* FUTURE: New to IMv7
Roll into a resize special operator */
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) ParseRegionGeometry(_image,arg1,&geometry,_exception);
new_image=InterpolativeResizeImage(_image,geometry.width,
{
if (LocaleCompare("lat",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
if ((flags & PercentValue) != 0)
MagickStatusType
flags;
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
black_point=geometry_info.rho;
MagickStatusType
flags;
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
black_point=geometry_info.rho;
if (LocaleCompare("liquid-rescale",option+1) == 0)
{
/* FUTURE: Roll into a resize special operator */
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseRegionGeometry(_image,arg1,&geometry,_exception);
if ((flags & XValue) == 0)
if (LocaleCompare("median",option+1) == 0)
{
/* DEPRECIATED - use -statistic Median */
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
CLISimpleOperatorImage(cli_wand,"-statistic","Median",arg1);
break;
}
if (LocaleCompare("mode",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
if ((flags & SigmaValue) == 0)
}
if (LocaleCompare("modulate",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) ModulateImage(_image,arg1,_exception);
break;
}
if (LocaleCompare("motion-blur",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
if ((flags & SigmaValue) == 0)
{
if (IfNormalOp)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
if ((flags & SigmaValue) == 0)
random_info=DestroyRandomInfo(random_info);
}
else {
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
angle=geometry_info.rho;
}
if (LocaleCompare("posterize",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) ParseGeometry(arg1,&geometry_info);
(void) PosterizeImage(_image,(size_t) geometry_info.rho,
{
if (LocaleCompare("radial-blur",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
new_image=RadialBlurImage(_image,geometry_info.rho,_exception);
}
if (LocaleCompare("raise",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParsePageGeometry(_image,arg1,&geometry,_exception);
if ((flags & SigmaValue) == 0)
}
if (LocaleCompare("random-threshold",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) RandomThresholdImage(_image,arg1,_exception);
break;
{
if (IfNormalOp)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,
arg1);
(void) ResetImagePage(_image,arg1);
if (LocaleCompare("resample",option+1) == 0)
{
/* FUTURE: Roll into a resize special operation */
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
if ((flags & SigmaValue) == 0)
}
if (LocaleCompare("resize",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) ParseRegionGeometry(_image,arg1,&geometry,_exception);
new_image=ResizeImage(_image,geometry.width,geometry.height,
}
if (LocaleCompare("roll",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) ParsePageGeometry(_image,arg1,&geometry,_exception);
new_image=RollImage(_image,geometry.x,geometry.y,_exception);
}
if (LocaleCompare("rotate",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
if (strchr(arg1,'>') != (char *) NULL)
if (_image->columns <= _image->rows)
if (LocaleCompare("sample",option+1) == 0)
{
/* FUTURE: Roll into a resize special operator */
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) ParseRegionGeometry(_image,arg1,&geometry,_exception);
new_image=SampleImage(_image,geometry.width,geometry.height,
if (LocaleCompare("scale",option+1) == 0)
{
/* FUTURE: Roll into a resize special operator */
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) ParseRegionGeometry(_image,arg1,&geometry,_exception);
new_image=ScaleImage(_image,geometry.width,geometry.height,
}
if (LocaleCompare("segment",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
if ((flags & SigmaValue) == 0)
}
if (LocaleCompare("selective-blur",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
if ((flags & PercentValue) != 0)
}
if (LocaleCompare("sepia-tone",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
new_image=SepiaToneImage(_image,StringToDoubleInterval(arg1,
(double) QuantumRange+1.0),_exception);
}
if (LocaleCompare("shade",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
if ((flags & SigmaValue) == 0)
}
if (LocaleCompare("shadow",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
if ((flags & SigmaValue) == 0)
}
if (LocaleCompare("sharpen",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
if ((flags & SigmaValue) == 0)
}
if (LocaleCompare("shave",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParsePageGeometry(_image,arg1,&geometry,_exception);
new_image=ShaveImage(_image,&geometry,_exception);
}
if (LocaleCompare("shear",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
if ((flags & SigmaValue) == 0)
}
if (LocaleCompare("sigmoidal-contrast",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
if ((flags & SigmaValue) == 0)
}
if (LocaleCompare("sketch",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
if ((flags & SigmaValue) == 0)
}
if (LocaleCompare("solarize",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) SolarizeImage(_image,StringToDoubleInterval(arg1,(double)
QuantumRange+1.0),_exception);
}
if (LocaleCompare("splice",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) ParseGravityGeometry(_image,arg1,&geometry,_exception);
new_image=SpliceImage(_image,&geometry,_exception);
}
if (LocaleCompare("spread",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) ParseGeometry(arg1,&geometry_info);
new_image=SpreadImage(_image,geometry_info.rho,_image->interpolate,
if ( parse < 0 )
CLIWandExceptArgBreak(OptionError,"UnrecognizedStatisticType",
option,arg1);
- if (IfFalse(IsGeometry(arg2)))
+ if (IfMagickFalse(IsGeometry(arg2)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg2);
(void) ParseGeometry(arg2,&geometry_info);
new_image=StatisticImage(_image,(StatisticType)parse,
}
if (LocaleCompare("swirl",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) ParseGeometry(arg1,&geometry_info);
new_image=SwirlImage(_image,geometry_info.rho,
threshold=(double) QuantumRange/2;
if (normal_op) {
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
threshold=StringToDoubleInterval(arg1,(double) QuantumRange+1.0);
}
}
if (LocaleCompare("thumbnail",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) ParseRegionGeometry(_image,arg1,&geometry,_exception);
new_image=ThumbnailImage(_image,geometry.width,geometry.height,
}
if (LocaleCompare("tint",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
new_image=TintImage(_image,arg1,&_draw_info->fill,_exception);
break;
}
if (LocaleCompare("unsharp",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
if ((flags & SigmaValue) == 0)
}
if (LocaleCompare("vignette",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
if ((flags & SigmaValue) == 0)
{
if (LocaleCompare("wave",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
flags=ParseGeometry(arg1,&geometry_info);
if ((flags & SigmaValue) == 0)
}
if (LocaleCompare("white-threshold",option+1) == 0)
{
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
(void) WhiteThresholdImage(_image,arg1,_exception);
break;
assert(cli_wand->signature == WandSignature);
assert(cli_wand->wand.signature == WandSignature);
assert(cli_wand->wand.images != (Image *) NULL); /* images must be present */
- if (IfTrue(cli_wand->wand.debug))
+ if (IfMagickTrue(cli_wand->wand.debug))
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",cli_wand->wand.name);
#if !USE_WAND_METHODS
cli_wand->wand.images=GetFirstImageInList(cli_wand->wand.images);
#else
MagickResetIterator(&cli_wand->wand);
- while ( IfTrue(MagickNextImage(&cli_wand->wand)) )
+ while ( IfMagickTrue(MagickNextImage(&cli_wand->wand)) )
CLISimpleOperatorImage(cli_wand, option, arg1, arg2);
MagickResetIterator(&cli_wand->wand);
#endif
#define _quantize_info (cli_wand->quantize_info)
#define IfNormalOp (*option=='-')
#define IfPlusOp (*option!='-')
-#define normal_op IsTrue(IfNormalOp)
+#define normal_op IsMagickTrue(IfNormalOp)
assert(cli_wand != (MagickCLI *) NULL);
assert(cli_wand->signature == WandSignature);
assert(cli_wand->wand.signature == WandSignature);
assert(_images != (Image *) NULL); /* _images must be present */
- if (IfTrue(cli_wand->wand.debug))
+ if (IfMagickTrue(cli_wand->wand.debug))
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",cli_wand->wand.name);
(void) SyncImagesSettings(_image_info,_images,_exception);
RectangleInfo
geometry;
+ /* Compose value from "-compose" option only */
value=GetImageOption(_image_info,"compose");
if (value != (const char *) NULL)
compose=(CompositeOperator) ParseCommandOption(
else
compose=OverCompositeOp; /* use Over not source_image->compose */
+ /* Get "clip-to-self" expert setting (false is normal) */
clip_to_self=IsStringTrue(GetImageOption(_image_info,
- "compose:clip-to-self"));
+ "compose:clip-to-self")); /* if this is true */
value=GetImageOption(_image_info,"compose:outside-overlay");
- if (value != (const char *) NULL) {
+ if (value != (const char *) NULL) { /* or this false */
/* FUTURE: depreciate warning for "compose:outside-overlay"*/
- clip_to_self= IsFalse(IsStringTrue(value));
+ clip_to_self= IsMagickFalse(IsStringNotFalse(value));
}
new_images=RemoveFirstImageFromList(&_images);
source_image=RemoveFirstImageFromList(&_images);
- /* FUTURE - produce Exception, rather than silent fail */
if (source_image == (Image *) NULL)
- break;
+ break; /* FUTURE - produce Exception, rather than silent fail */
/* FUTURE - this should not be here! - should be part of -geometry */
(void) TransformImage(&source_image,(char *) NULL,
if (mask_image != (Image *) NULL)
{ /* handle a third write mask image */
if ((compose == DisplaceCompositeOp) ||
- (compose == DistortCompositeOp))
- { /* Merge Y displacement into X displace/distort map. */
- (void) CompositeImage(source_image,mask_image,
- CopyGreenCompositeOp,MagickTrue,0,0,_exception);
- mask_image=DestroyImage(mask_image);
- }
- else
- {
- /*
- Set a blending mask for the composition.
- */
- (void) NegateImage(mask_image,MagickFalse,_exception);
- (void) SetImageMask(new_images,mask_image,_exception);
- mask_image=DestroyImage(mask_image);
- }
+ (compose == DistortCompositeOp)) {
+ /* Merge Y displacement into X displace/distort map. */
+ (void) CompositeImage(source_image,mask_image,
+ CopyGreenCompositeOp,MagickTrue,0,0,_exception);
+ mask_image=DestroyImage(mask_image);
+ }
+ else {
+ /* Set a blending mask for the composition. */
+ (void) NegateImage(mask_image,MagickFalse,_exception);
+ (void) SetImageMask(new_images,mask_image,_exception);
+ mask_image=DestroyImage(mask_image);
+ }
}
(void) CompositeImage(new_images,source_image,compose,clip_to_self,
geometry.x,geometry.y,_exception);
size_t
number_duplicates;
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,
arg1);
number_duplicates=(size_t) StringToLong(arg1);
ssize_t
index;
- if (IfNormalOp && IfFalse(IsGeometry(arg1)))
+ if (IfNormalOp && IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
index=0;
insert_image=RemoveLastImageFromList(&_images);
Image
*morph_image;
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
morph_image=MorphImages(_images,StringToUnsignedLong(arg1),
_exception);
ssize_t
offset;
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
offset=(ssize_t) StringToLong(arg1);
smush_image=SmushImages(_images,normal_op,offset,_exception);
index,
swap_index;
- if (IfFalse(IsGeometry(arg1)))
+ if (IfMagickFalse(IsGeometry(arg1)))
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
index=-1;
swap_index=-2;
assert(cli_wand != (MagickCLI *) NULL);
assert(cli_wand->signature == WandSignature);
assert(cli_wand->wand.signature == WandSignature);
- if (IfTrue(cli_wand->wand.debug))
+ if (IfMagickTrue(cli_wand->wand.debug))
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",cli_wand->wand.name);
if(cli_wand->wand.images != (Image *)NULL)
MagickBooleanType
status=ExpandFilenames(&argc,&argv);
- if (IfFalse(status))
+ if (IfMagickFalse(status))
ThrowConvertException(ResourceLimitError,"MemoryAllocationFailed",
GetExceptionMessage(errno));
...loop over images to read...
#if !USE_WAND_METHODS
Image *
new_images;
- if (IfTrue(cli_wand->wand.image_info->ping))
+ if (IfMagickTrue(cli_wand->wand.image_info->ping))
new_images=PingImages(cli_wand->wand.image_info,arg1,_exception);
else
new_images=ReadImages(cli_wand->wand.image_info,arg1,_exception);
cli_wand->image_list_stack = node;
/* handle respect-parenthesis */
- if (IfTrue(IsStringTrue(GetImageOption(cli_wand->wand.image_info,
+ if (IfMagickTrue(IsStringTrue(GetImageOption(cli_wand->wand.image_info,
"respect-parenthesis"))))
option="{"; /* fall-thru so as to push image settings too */
else
node = cli_wand->image_info_stack;
if ( node != (Stack *)NULL)
{
- if (IfTrue(IsStringTrue(GetImageOption(cli_wand->wand.image_info,
- "respect-parenthesis"))))
+ if (IfMagickTrue(IsStringTrue(GetImageOption(
+ cli_wand->wand.image_info,"respect-parenthesis"))))
option="}"; /* fall-thru so as to pop image settings too */
else
return;
if (*option == '+')
arg1="-1";
- if (IfFalse(IsSceneGeometry(arg1,MagickFalse)))
+ if (IfMagickFalse(IsSceneGeometry(arg1,MagickFalse)))
CLIWandExceptionReturn(OptionError,"InvalidArgument",option);
if ( cli_wand->image_list_stack == (Stack *)NULL)
CLIWandExceptionReturn(OptionError,"UnableToCloneImage",option);