Prev
MagickWand For PHP
Manual


Next

MagickNegateImage

MagickNegateImage -- negates the colors in the current active image or one of its image channels

Description

bool MagickNegateImage( MagickWand mgck_wnd [, bool only_the_gray [, int channel_type]] )

Negates the colors in the current active image the specified image or one of its image channels. If only_the_gray is set to TRUE, (it is FALSE by default), only grayscale values within the image will be negated. You can also reduce the influence of a particular channel with a gamma value of 0. Returns TRUE if successful, FALSE if an error occurred. If the optional channel_type parameter is specified, MagickNegateImageChannel() is called on that particular image 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
only_the_gray (OPTIONAL) FALSE by default; if TRUE, only grayscale pixels within the image will be negated
channel_type (OPTIONAL) ChannelType constant


Prev
MagickMotionBlurImage
Up Next
MagickNewImage