MagickSetImageDepth
MagickSetImageDepth -- sets the depth of the current active image, or that of the specified image channel
Description
bool MagickSetImageDepth( MagickWand mgck_wnd, int depth [, int channel_type]] )
Sets the depth of the current active image, or that of the specified image channel. Returns TRUE if successful, FALSE if an error occurred. If the optional channel_type parameter is specified, MagickSetImageChannelDepth() 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 |
| depth | The image depth in bits: 8, 16, or 32 |
| channel_type | (OPTIONAL) ChannelType constant |