imagesetthickness
PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8
imagesetthickness - Set the thickness for line drawing
Manual
imagesetthickness(
GdImage$image,
int$thickness ): bool
imagesetthickness sets the thickness of the lines drawn when drawing rectangles, polygons, arcs etc. to thickness pixels.
Parameters
- image
A GdImage object, returned by one of the image creation functions, such as imagecreatetruecolor.
- thickness
-
Thickness, in pixels.
Return Values
Returns true on success or false on failure.
Changelog
Version | Description |
8.0.0 | image expects a GdImage instance now; previously, a resource was expected. |