The ImagickDraw::point() function is an inbuilt function in Imagick library of PHP which is used to draw a point. This function uses current stroke color and stroke thickness at the specified coordinates.
bool ImagickDraw::point( $x, $y )
Parameters: This function accepts two parameters as mentioned above and described below:
- $x: This parameter is used to hold the value of x coordinate.
- $y: This parameter is used to hold the value of y coordinate.
Return Value: This function returns TRUE on success.
Below program illustrates the ImagickDraw::point() 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.