The Imagick::charcoalImage() function is an inbuilt function in PHP which is used to simulate a charcoal drawing of an image.
bool Imagick::charcoalImage( $radius, $sigma )
Parameters: This function accepts two parameters as mentioned above and described below:
- $radius: This parameter stores the value of radius of the Gaussian, in pixels.
- $sigma: This parameter stores the value of the standard deviation of the Gaussian, in pixels.
Return Value: This function returns True on success.
Below program illustrates the Imagick::charcoalImage() function in PHP:
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.