Hello,

in ImageMagick-6.4.2 I can use MagickSetInterpolateMethod to set the 
interpolate method for a wand.

Since ImageMagick-6.4.3 I can still use MagickSetInterpolateMethod, but the 
method set is ignored,
instead the method UndefinedInterpolatePixel is used.

How should I set the interpolate method now?


in ImageMagick-6.4.2:
The interpolate method is stored in the image_info options
>MagickSetInterpolateMethod (wand/magick-property.c):
>>  status=SetImageOption(wand->image_info,"interpolate",
>>    MagickOptionToMnemonic(MagickInterpolateOptions,(long) method));

and in AcquireImage and ReadImage the options are used to initialize the image 
with the function SyncImageOptions.
>AcquireImage(magick/image.c):
>>  (void) SyncImageOptions(image_info,allocate_image);

>ReadImage (magick/constiture.c)
>>    (void) SyncImageOptions(read_info,next);

>SyncImageOptions (magick/option.c):
>>  option=GetImageOption(image_info,"interpolate");
>>  if (option != (const char *) NULL)
>>    image->interpolate=(InterpolatePixelMethod) ParseMagickOption(
>>      MagickInterpolateOptions,MagickFalse,option);


Since ImageMagick-6.4.3 the function SyncImageOptions does not exist anymore (I 
cannot find it)
and in AcquireImage only the option "tile-offset" is used for the 
initialization of the image.
>AcquireImage(magick/image.c):
>>  option=GetImageOption(image_info,"tile-offset");
>>  if (option != (const char *) NULL)
>>    {
>>      char
>>        *geometry;
>>
>>      geometry=GetPageGeometry(option);
>>      flags=ParseAbsoluteGeometry(geometry,&image->tile_offset);
>>      geometry=DestroyString(geometry);
>>    }

and in ReadImage only the option "caption", "comment" and "label" are used for 
the initialization of the image.
>ReadImage (magick_constiture.c)
>>  if (*read_info->filename != '\0')
>>      {
>>        const char
>>          *option;
>>
>>        option=GetImageOption(read_info,"caption");
>>        if (option != (const char *) NULL)
>>          (void) SetImageProperty(next,"caption",InterpretImageProperties(
>>            read_info,next,option));
>>        option=GetImageOption(read_info,"comment");
>>        if (option != (const char *) NULL)
>>          (void) SetImageProperty(next,"comment",InterpretImageProperties(
>>            read_info,next,option));
>>        option=GetImageOption(read_info,"label");
>>        if (option != (const char *) NULL)
>>          (void) SetImageProperty(next,"label",InterpretImageProperties(
>>            read_info,next,option));
>>      }



Thanks in Advance and Regards
Thomas Stegemann


_______________________________________________
Magick-developers mailing list
Magick-developers@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-developers

Reply via email to