Options for MagickWand - interpolate, antialias
| Newsgroups | gmane.comp.video.image-magick.devel |
|---|---|
| Message-ID | <[email protected]> |
With ImageMagick 6.3.1, using MagickReadImageBlob for MagickWand, I can not set the InterpolatePixelMethod and disable the antialias.
1) With MagickSetImageInterpolateMethod I can set the InterpolatePixelMethod for images read with MagickReadImageBlob, but MagickReadImageBlob already uses the InterpolatePixelMethod (I read an svg which includes a bitmap).
2) For setting the antialias there exists no interface.
Can you help me?
Kind regards,
Thomas Stegemann
For antialias I suggest
add in magick-image.h:
WandExport MagickBooleanType MagickSetAntialias(MagickWand *wand, MagickBooleanType antialias)
{
assert(wand != (MagickWand *) NULL);
assert(wand->signature == WandSignature);
wand->image_info->antialias= antialias;
return MagickTrue;
}
For InterpolatePixelMethod I suggest
extend ImageInfo in magick-type.h:
InterpolatePixelMethod interpolate;
replace in magick-image.h:
WandExport MagickBooleanType MagickSetImageInterpolateMethod(MagickWand *wand,
const InterpolatePixelMethod method)
{
assert(wand != (MagickWand *) NULL);
assert(wand->signature == WandSignature);
wand->image_info->interpolate= method;
return MagickTrue;
}
extend AllocateImage(const ImageInfo *image_info) in image.c:
allocate_image->interpolate= image_info->interpolate;