Home > PHP > Function > GD > imagesetthickness()

imagesetthickness()

imagesetthickness - Set the thickness for line drawing

Syntax

bool imagesetthickness (resource $image, int $thickness)

Arguments

  • image - An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().
  • thickness - Thickness, in pixels.

Description

imagesetthickness() sets the thickness of the lines drawn when drawing rectangles, polygons, ellipses etc. etc. to thickness pixels.

Version

PHP 4.0.6, 5

Return value

Returns TRUE on success or FALSE on failure.