*y=(-*y);
}
}
- if ((flags & SeparatorValue) == 0)
+ if ((flags & PercentValue) != 0)
{
- if (((flags & PercentValue) != 0) && ((flags & WidthValue) == 0))
- {
- *width=(*height);
- flags|=WidthValue;
- }
- if (((flags & PercentValue) != 0) && ((flags & HeightValue) == 0))
+ if (((flags & SeparatorValue) == 0) && ((flags & HeightValue) == 0))
{
*height=(*width);
flags|=HeightValue;
}
+ if (((flags & SeparatorValue) != 0) && ((flags & WidthValue) == 0))
+ *width=(*height);
}
#if 0
/* Debugging Geometry */
flags|=SigmaValue;
flags&=(~XiValue);
}
- if ((flags & SeparatorValue) == 0)
+ if ((flags & PercentValue) != 0)
{
- if (((flags & PercentValue) != 0) && ((flags & RhoValue) == 0))
- {
- geometry_info->rho=geometry_info->sigma;
- flags|=RhoValue;
- }
- if (((flags & PercentValue) != 0) && ((flags & SigmaValue) == 0))
+ if (((flags & SeparatorValue) == 0) && ((flags & SigmaValue) == 0))
{
geometry_info->sigma=geometry_info->rho;
flags|=SigmaValue;
}
+ if (((flags & SeparatorValue) != 0) && ((flags & RhoValue) == 0))
+ geometry_info->rho=geometry_info->sigma;
}
#if 0
/* Debugging Geometry */
}
flags=ParseMetaGeometry(geometry,®ion_info->x,®ion_info->y,
®ion_info->width,®ion_info->height);
+ if ((flags & PercentValue) != 0)
+ {
+ if ((flags & WidthValue) == 0)
+ region_info->width=region_info->height;
+ if ((flags & HeightValue) == 0)
+ region_info->height=region_info->width;
+ }
return(flags);
}
\f
value;
flags=ParsePageGeometry(_image,arg1,&geometry,_exception);
- if ((flags & WidthValue) == 0)
+ if ((flags & (WidthValue | HeightValue)) == 0)
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
if ((flags & HeightValue) == 0)
geometry.height=geometry.width;
-
+ compose=OverCompositeOp;
value=GetImageOption(_image_info,"compose");
if (value != (const char *) NULL)
- compose=(CompositeOperator) ParseCommandOption(
- MagickComposeOptions,MagickFalse,value);
- else
- compose=OverCompositeOp; /* use Over not _image->compose */
-
+ compose=(CompositeOperator) ParseCommandOption(MagickComposeOptions,
+ MagickFalse,value);
new_image=BorderImage(_image,&geometry,compose,_exception);
break;
}