Prev
MagickWand For PHP
Manual


Next

MagickResampleImage

MagickResampleImage -- resamples the current active image to a desired resolution

Description

bool MagickResampleImage( MagickWand mgck_wand, float x_resolution, float y_resolution, int filter_type, float blur )

Resamples the current active image to a desired resolution with one of the FilterTypes filters. See below for the list of available filters. Returns TRUE on success, FALSE if an error occurred. Most of the available filters are FIR (finite impulse response), however, MW_BesselFilter, MW_GaussianFilter, and MW_SincFilter are IIR (infinite impulse response). MW_BesselFilter and MW_SincFilter are windowed (brought down to zero) with the MW_BlackmanFilter filter. filter_type must be a FilterTypes constant, one of the following: MW_PointFilter MW_BoxFilter MW_TriangleFilter MW_HermiteFilter MW_HanningFilter MW_HammingFilter MW_BlackmanFilter MW_GaussianFilter MW_QuadraticFilter MW_CubicFilter MW_CatromFilter MW_MitchellFilter MW_LanczosFilter MW_BesselFilter MW_SincFilter


A description of each parameter follows:

mgck_wnd A MagickWand.
x_resolution The new image x resolution.
y_resolution The new image y resolution.
filter_type Image filter to use.
blur The blur factor where > 1 is blurry, < 1 is sharp


Prev
MagickRemoveImageProfiles
Up Next
MagickResetIterator