Prev
MagickWand For PHP
Manual


Next

MagickLevelImage

MagickLevelImage -- adjusts the levels of the current active image or one of its image channels

Description

bool MagickLevelImage( MagickWand mgck_wnd, float black_point, float gamma, float white_point [, int channel_type] )

Adjusts the levels of the current active image (or of the specified image channel) by scaling the colors falling between specified white and black points to the full available quantum range. The parameters provided represent the black, mid, and white points. The black point specifies the darkest color in the image. Colors darker than the black point are set to zero. Mid point specifies a gamma correction to apply to the image. White point specifies the lightest color in the image. Colors brighter than the white point are set to the maximum quantum value. Returns TRUE if successful, FALSE if an error occurred. If the optional channel_type parameter is specified, MagickLevelImageChannel() 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
black_point The black point
gamma The gamma
white_point The white point
channel_type (OPTIONAL) ChannelType constant


Prev
MagickLabelImage
Up Next
MagickMagnifyImage