MagickGetImageExtrema
MagickGetImageExtrema -- returns the extrema for one or more images, or image channels
Description
array MagickGetImageExtrema( MagickWand mgck_wnd [, int channel_type] )
Returns the extrema for one or more images, or image channels. Returns an array if successful, FALSE if an error occurred. Returned array is defined as follows: Array { [0] => the minimum pixel value for the specified channel(s) [1] => the maximum pixel value for the specified channel(s) } If the optional channel_depth parameter is specified, MagickGetImageChannelExtrema() is called on the 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 | (OPTIONAL) ChannelType constant |