MagickSeparateImageChannel
MagickSeparateImageChannel -- separates a channel from the current active image
Description
bool MagickSeparateImageChannel( MagickWand mgck_wnd, int channel_type )
Separates a channel from the current active image in a MagickWand, turning the image into a grayscale image. A channel is a particular color component of each pixel in the image. 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 |
| channel_type | A ChannelType constant |