AdaptiveResizeImage • InterpolativeResizeImage • LiquidRescaleImage • MagnifyImage • MinifyImage • ResampleImage • ResizeImage • SampleImage • ScaleImage • ThumbnailImage
AdaptiveResizeImage() adaptively resize image with pixel resampling.
This is shortcut function for a fast interpolative resize using mesh interpolation. It works well for small resizes of less than +/- 50 of the original image size. For larger resizing on images a full filtered and slower resize function should be used instead.
The format of the AdaptiveResizeImage method is:
Image *AdaptiveResizeImage(const Image *image,const size_t columns, const size_t rows,ExceptionInfo *exception)
A description of each parameter follows:
InterpolativeResizeImage() resizes an image using the specified interpolation method.
The format of the InterpolativeResizeImage method is:
Image *InterpolativeResizeImage(const Image *image,const size_t columns, const size_t rows,const InterpolatePixelMethod method, ExceptionInfo *exception)
A description of each parameter follows:
LiquidRescaleImage() rescales image with seam carving.
The format of the LiquidRescaleImage method is:
Image *LiquidRescaleImage(const Image *image, const size_t columns,const size_t rows, const double delta_x,const double rigidity,ExceptionInfo *exception)
A description of each parameter follows:
MagnifyImage() doubles the size of the image with a pixel art scaling algorithm.
The format of the MagnifyImage method is:
Image *MagnifyImage(const Image *image,ExceptionInfo *exception)
A description of each parameter follows:
MinifyImage() is a convenience method that scales an image proportionally to half its size.
The format of the MinifyImage method is:
Image *MinifyImage(const Image *image,ExceptionInfo *exception)
A description of each parameter follows:
ResampleImage() resize image in terms of its pixel size, so that when displayed at the given resolution it will be the same size in terms of real world units as the original image at the original resolution.
The format of the ResampleImage method is:
Image *ResampleImage(Image *image,const double x_resolution, const double y_resolution,const FilterTypes filter,const double blur, ExceptionInfo *exception)
A description of each parameter follows:
ResizeImage() scales an image to the desired dimensions, using the given filter (see AcquireFilterInfo()).
If an undefined filter is given the filter defaults to Mitchell for a colormapped image, a image with a matte channel, or if the image is enlarged. Otherwise the filter defaults to a Lanczos.
ResizeImage() was inspired by Paul Heckbert's "zoom" program.
The format of the ResizeImage method is:
Image *ResizeImage(Image *image,const size_t columns, const size_t rows,const FilterTypes filter,const double blur, ExceptionInfo *exception)
A description of each parameter follows:
SampleImage() scales an image to the desired dimensions with pixel sampling. Unlike other scaling methods, this method does not introduce any additional color into the scaled image.
The format of the SampleImage method is:
Image *SampleImage(const Image *image,const size_t columns, const size_t rows,ExceptionInfo *exception)
A description of each parameter follows:
ScaleImage() changes the size of an image to the given dimensions.
The format of the ScaleImage method is:
Image *ScaleImage(const Image *image,const size_t columns, const size_t rows,ExceptionInfo *exception)
A description of each parameter follows:
ThumbnailImage() changes the size of an image to the given dimensions and removes any associated profiles. The goal is to produce small low cost thumbnail images suited for display on the Web.
The format of the ThumbnailImage method is:
Image *ThumbnailImage(const Image *image,const size_t columns, const size_t rows,ExceptionInfo *exception)
A description of each parameter follows: