Page 1 of 1

No resize() only sample() and scale()? [Magick++]

Posted: 2006-06-22T12:40:59-07:00
by mankyd
Looking at the Magick++ documentation (here), I see no mention of a resize() function. The exception is that it is referenced in the notes of the filterType property (here.) Am I missing something?

I've been using sample to scale my images down and have not been impressed with the results. While we're on the subject, can someone explain to me the difference between sample() and what would be resize()?

Posted: 2006-06-22T14:04:45-07:00
by magick
Use zoom(). Its an alias for resizing an image. Sampling samples an image and does not introduce any additionals colors into the image. Resizing uses an image filter and does introduce new colors into the image and generally does a better job than sampling.

Posted: 2006-06-22T17:21:58-07:00
by mankyd
Thanks! That did it for me. Perhaps the fact the zoom effectively == resize can be mentioned in the documentation somewhere?

Posted: 2006-06-22T17:23:50-07:00
by magick
We took the easy way out and added resize() to Magick++ for the next point release.

Re: No resize() only sample() and scale()? [Magick++]

Posted: 2007-02-21T08:54:05-07:00
by magick
The source to the complete ImageMagick distribution is available from the home page, http://www.imagemagick.org. The resizing algorithms are in the ImageMagick-6.3.2/magick/resize.c source module.