% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
-% SyncImageSettings() sync the image_info options into per-image attributes.
+% SyncImageSettings() syncs the image_info options into per-image attributes.
%
% The format of the SyncImageSettings method is:
%
%
% An input argument of 0 returns the current precision setting.
%
-% A negative value will force precision to reset to a default value
-% according to the environment variable "MAGICK_PRECISION", the current
-% 'policy' configuration setting, or the default value of '6', in that order.
+% A negative value forces the precision to reset to a default value according
+% to the environment variable "MAGICK_PRECISION", the current 'policy'
+% configuration setting, or the default value of '6', in that order.
%
% The format of the SetMagickPrecision method is:
%
static int
magick_precision = 0;
-
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
-
if (precision > 0)
- magick_precision = precision;
-
- if (precision < 0 || magick_precision == 0)
+ magick_precision=precision;
+ if ((precision < 0) || (magick_precision == 0))
{
char
*limit;
/*
- Precision Reset, or it has not been set yet
+ Precision reset, or it has not been set yet
*/
magick_precision = MagickPrecision;
limit=GetEnvironmentValue("MAGICK_PRECISION");
limit=GetPolicyValue("precision");
if (limit != (char *) NULL)
{
- magick_precision = StringToInteger(limit);
+ magick_precision=StringToInteger(limit);
limit=DestroyString(limit);
}
}
}
if (LocaleNCompare("scene",property,5) == 0)
{
- /* FUTURE: I am not certain this properity return makes sense! */
+ /* FUTURE: I am not certain this property return makes sense! */
(void) FormatLocaleString(value,MaxTextExtent,"%.20g",(double)
image->scene);
if (image_info->number_scenes != 0)