MagickWand For PHP



MagickBlurImage -- blurs the current active image, or blurs one or more image channels.


bool MagickBlurImage( MagickWand mgck_wnd, float radius, float sigma [, int channel_type] )

Blurs the current active image. It convolves the image with a gaussian operator of the given radius and standard deviation (sigma). For reasonable results, the radius should be larger than sigma. Use a radius of 0 and MagickBlurImage() selects a suitable radius for you. Returns TRUE on success, or FALSE if an error occurred. If the optional channel_type parameter is specified, calls MagickBlurImageChannel() on the specified image channel, to blur said channel. channel_type must be a ChannelType constant, one of the following: MW_RedChannel MW_CyanChannel MW_GreenChannel MW_MagentaChannel MW_BlueChannel MW_YellowChannel MW_AlphaChannel MW_OpacityChannel MW_BlackChannel MW_IndexChannel MW_AllChannels

A description of each parameter follows:

mgck_wnd A MagickWand resource
radius The radius of the gaussian operator, in pixels, not counting the center pixel
sigma The standard deviation of the gaussian operator, in pixels
channel_type (OPTIONAL) identify which channel to extract (see above for possible values)

Up Next