The contrast() function is an inbuilt function in the GraphicsMagick library which is used to enhance or reduce the contrast of the image. The function returns the true value on success.
Parameters: This function accepts a single parameter multiplier which is the factor by which the contrast of image should increase or decrease.
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.