imagesetthickness

PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8
imagesetthickness - Set the thickness for line drawing
Manual
Code Examples

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.

Example of imagesetthickness

Show all examples for imagesetthickness

PHP Version:


Function imagesetthickness:

Image Processing and GD Functions

Most used PHP functions