The imagesetthickness() function is an inbuilt function in PHP which is used to set the thickness for line drawing.
bool imagesetthickness( $image, $thickness )
Parameters: This function accepts two parameters as mentioned above and described below:
- $image: It is returned by one of the image creation functions, such as imagecreatetruecolor(). It is used to create size of image.
- $thickness: This parameter is used to set the thickness in pixel.
Return Value: This function returns True on success or False on failure.
Below programs illustrate the imagesetthickness() function in PHP:
- p5.js | nfc() function
- p5.js | nfs() Function
- p5.js | tan() function
- p5.js | nfp() Function
- p5.js | nf() Function
- PHP | each() Function
- D3.js | d3.mean() function
- PHP | next() Function
- p5.js | arc() Function
- PHP | exp() Function
- D3.js | d3.map.set() Function
- p5.js | str() function
- PHP | ord() Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.