if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageArtifact(image,attribute,SvPV(sval,na));
break;
}
case 'B':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageArtifact(image,attribute,SvPV(sval,na));
break;
}
case 'C':
if (LocaleCompare(attribute,"comment") == 0)
{
for ( ; image; image=image->next)
- (void) SetImageProperty(image,"Comment",InterpretImageProperties(
+ (void) SetImageOption(image,"Comment",InterpretImageProperties(
info ? info->image_info : (ImageInfo *) NULL,image,
- SvPV(sval,na),exception),exception);
+ SvPV(sval,na),exception));
break;
}
if (LocaleCompare(attribute,"compression") == 0)
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageArtifact(image,attribute,SvPV(sval,na));
break;
}
case 'D':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageArtifact(image,attribute,SvPV(sval,na));
break;
}
case 'E':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageArtifact(image,attribute,SvPV(sval,na));
break;
}
case 'F':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageArtifact(image,attribute,SvPV(sval,na));
break;
}
case 'G':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageArtifact(image,attribute,SvPV(sval,na));
break;
}
case 'I':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageArtifact(image,attribute,SvPV(sval,na));
break;
}
case 'L':
if (LocaleCompare(attribute,"label") == 0)
{
for ( ; image; image=image->next)
- (void) SetImageProperty(image,"label",InterpretImageProperties(
+ (void) SetImageOption(image,attribute,InterpretImageProperties(
info ? info->image_info : (ImageInfo *) NULL,image,
- SvPV(sval,na),exception),exception);
+ SvPV(sval,na),exception));
break;
}
if (LocaleCompare(attribute,"loop") == 0)
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageArtifact(image,attribute,SvPV(sval,na));
break;
}
case 'M':
if (LocaleCompare(attribute,"magick") == 0)
{
if (info)
- (void) FormatLocaleString(info->image_info->filename,MagickPathExtent,
- "%s:",SvPV(sval,na));
+ (void) FormatLocaleString(info->image_info->filename,
+ MagickPathExtent,"%s:",SvPV(sval,na));
for ( ; image; image=image->next)
(void) CopyMagickString(image->magick,SvPV(sval,na),MagickPathExtent);
break;
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageArtifact(image,attribute,SvPV(sval,na));
break;
}
case 'O':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageArtifact(image,attribute,SvPV(sval,na));
break;
}
case 'P':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageArtifact(image,attribute,SvPV(sval,na));
break;
}
case 'Q':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageArtifact(image,attribute,SvPV(sval,na));
break;
}
case 'R':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageArtifact(image,attribute,SvPV(sval,na));
break;
}
case 'S':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageArtifact(image,attribute,SvPV(sval,na));
break;
}
case 'T':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageArtifact(image,attribute,SvPV(sval,na));
break;
}
case 'U':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageArtifact(image,attribute,SvPV(sval,na));
break;
}
case 'V':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageArtifact(image,attribute,SvPV(sval,na));
break;
}
case 'W':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageArtifact(image,attribute,SvPV(sval,na));
break;
}
default:
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageArtifact(image,attribute,SvPV(sval,na));
break;
}
}
const char
*value;
- value=GetImageProperty(image,attribute,exception);
+ value=GetImageOption(image,attribute);
if (value != (const char *) NULL)
s=newSVpv(value,0);
PUSHs(s ? sv_2mortal(s) : &sv_undef);
if (image == (Image *) NULL)
break;
- value=GetImageProperty(image,"Label",exception);
+ value=GetImageOption(image,"label");
if (value != (const char *) NULL)
s=newSVpv(value,0);
PUSHs(s ? sv_2mortal(s) : &sv_undef);
{
if (attribute_flag[0] == 0)
argument_list[0].string_reference=(char *) NULL;
- (void) SetImageProperty(image,"comment",InterpretImageProperties(
+ (void) SetImageOption(image,"comment",InterpretImageProperties(
info ? info->image_info : (ImageInfo *) NULL,image,
- argument_list[0].string_reference,exception),exception);
+ argument_list[0].string_reference,exception));
break;
}
case 2: /* Label */
{
if (attribute_flag[0] == 0)
argument_list[0].string_reference=(char *) NULL;
- (void) SetImageProperty(image,"label",InterpretImageProperties(
+ (void) SetImageOption(image,"label",InterpretImageProperties(
info ? info->image_info : (ImageInfo *) NULL,image,
- argument_list[0].string_reference,exception),exception);
+ argument_list[0].string_reference,exception));
break;
}
case 3: /* AddNoise */
geometry_info.rho=argument_list[6].real_reference;
SetImageArtifact(image,"modulate:colorspace","HWB");
}
- (void) FormatLocaleString(modulate,MagickPathExtent,"%.20g,%.20g,%.20g",
- geometry_info.rho,geometry_info.sigma,geometry_info.xi);
+ (void) FormatLocaleString(modulate,MagickPathExtent,
+ "%.20g,%.20g,%.20g",geometry_info.rho,geometry_info.sigma,
+ geometry_info.xi);
(void) ModulateImage(image,modulate,exception);
break;
}
if (LocaleCompare(attribute,"label") == 0)
{
for (next=image; next; next=next->next)
- (void) SetImageProperty(next,"label",InterpretImageProperties(
+ (void) SetImageOption(next,"label",InterpretImageProperties(
info ? info->image_info : (ImageInfo *) NULL,next,
- SvPV(ST(i),na),exception),exception);
+ SvPV(ST(i),na),exception));
break;
}
ThrowPerlException(exception,OptionError,"UnrecognizedAttribute",
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageAttribute(attribute,SvPV(sval,na));
break;
}
case 'B':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageAttribute(attribute,SvPV(sval,na));
break;
}
case 'C':
if (LocaleCompare(attribute,"comment") == 0)
{
for ( ; image; image=image->next)
- (void) SetImageProperty(image,"Comment",InterpretImageProperties(
+ (void) SetImageOption(image,attribute,InterpretImageProperties(
info ? info->image_info : (ImageInfo *) NULL,image,
- SvPV(sval,na),exception),exception);
+ SvPV(sval,na),exception));
break;
}
if (LocaleCompare(attribute,"compression") == 0)
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageAttribute(attribute,SvPV(sval,na));
break;
}
case 'D':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageAttribute(attribute,SvPV(sval,na));
break;
}
case 'E':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageAttribute(attribute,SvPV(sval,na));
break;
}
case 'F':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageAttribute(attribute,SvPV(sval,na));
break;
}
case 'G':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageAttribute(attribute,SvPV(sval,na));
break;
}
case 'I':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageAttribute(attribute,SvPV(sval,na));
break;
}
case 'L':
if (LocaleCompare(attribute,"label") == 0)
{
for ( ; image; image=image->next)
- (void) SetImageProperty(image,"label",InterpretImageProperties(
+ (void) SetImageOption(image,attribute,InterpretImageProperties(
info ? info->image_info : (ImageInfo *) NULL,image,
- SvPV(sval,na),exception),exception);
+ SvPV(sval,na),exception));
break;
}
if (LocaleCompare(attribute,"loop") == 0)
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageAttribute(attribute,SvPV(sval,na));
break;
}
case 'M':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageAttribute(attribute,SvPV(sval,na));
break;
}
case 'O':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageAttribute(attribute,SvPV(sval,na));
break;
}
case 'P':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageAttribute(attribute,SvPV(sval,na));
break;
}
case 'Q':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageAttribute(attribute,SvPV(sval,na));
break;
}
case 'R':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageAttribute(attribute,SvPV(sval,na));
break;
}
case 'S':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageAttribute(attribute,SvPV(sval,na));
break;
}
case 'T':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageAttribute(attribute,SvPV(sval,na));
break;
}
case 'U':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageAttribute(attribute,SvPV(sval,na));
break;
}
case 'V':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageAttribute(attribute,SvPV(sval,na));
break;
}
case 'W':
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageAttribute(attribute,SvPV(sval,na));
break;
}
default:
if (info)
SetImageOption(info->image_info,attribute,SvPV(sval,na));
for ( ; image; image=image->next)
- SetImageProperty(image,attribute,SvPV(sval,na),exception);
+ SetImageAttribute(attribute,SvPV(sval,na));
break;
}
}
const char
*value;
- value=GetImageProperty(image,attribute,exception);
+ value=GetImageOption(image,attribute);
if (value != (const char *) NULL)
s=newSVpv(value,0);
PUSHs(s ? sv_2mortal(s) : &sv_undef);
if (image == (Image *) NULL)
break;
- value=GetImageProperty(image,"Label",exception);
+ value=GetImageOption(image,attribute);
if (value != (const char *) NULL)
s=newSVpv(value,0);
PUSHs(s ? sv_2mortal(s) : &sv_undef);
{
default:
{
- (void) FormatLocaleString(message,MagickPathExtent,"%.20g",(double) ix);
+ (void) FormatLocaleString(message,MagickPathExtent,"%.20g",(double)
+ ix);
ThrowPerlException(exception,OptionError,
"UnrecognizedPerlMagickMethod",message);
goto PerlException;
{
if (attribute_flag[0] == 0)
argument_list[0].string_reference=(char *) NULL;
- (void) SetImageProperty(image,"comment",InterpretImageProperties(
+ (void) SetImageOption(image,"comment",InterpretImageProperties(
info ? info->image_info : (ImageInfo *) NULL,image,
- argument_list[0].string_reference,exception),exception);
+ argument_list[0].string_reference,exception));
break;
}
case 2: /* Label */
{
if (attribute_flag[0] == 0)
argument_list[0].string_reference=(char *) NULL;
- (void) SetImageProperty(image,"label",InterpretImageProperties(
+ (void) SetImageOption(image,"label",InterpretImageProperties(
info ? info->image_info : (ImageInfo *) NULL,image,
- argument_list[0].string_reference,exception),exception);
+ argument_list[0].string_reference,exception));
break;
}
case 3: /* AddNoise */
if (LocaleCompare(attribute,"label") == 0)
{
for (next=image; next; next=next->next)
- (void) SetImageProperty(next,"label",InterpretImageProperties(
+ (void) SetImageOption(next,attribute,InterpretImageProperties(
info ? info->image_info : (ImageInfo *) NULL,next,
- SvPV(ST(i),na),exception),exception);
+ SvPV(ST(i),na),exception));
break;
}
ThrowPerlException(exception,OptionError,"UnrecognizedAttribute",