The orderedDither() function is an inbuilt function in the GraphicsMagick library which is used to ordered dither the image. The ordered dither method is used to reduce channel or channeltype argument into binary. The values of channeltype are All, Intensity, Red, Green, Blue, Cyan, Magenta, Yellow, Black, and Opacity. The function returns the true value on success.
orderedDither( ChannelType, NxN )
Parameters: This function accepts two parameters as mentioned above and described below:
- ChannelType: This parameter is used to specify the Channel Type as All, Intensity, Red, Green, Blue, Cyan, Magenta, Yellow, Black, and Opacity.
- NxN: This parameter is used to specify the minimum and maximum level of the intensity.
Return Value: This function returns the GraphicsMagick object.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.