imagesetstyle()
imagesetstyle - Set the style for line drawing
Syntax
bool imagesetstyle (
resource $image,
array $style)
Arguments
- image - An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().
- style - An array of pixel colors. You can use the IMG_COLOR_TRANSPARENT constant to add a transparent pixel.
Description
imagesetstyle() sets the style to be used by all line drawing functions (such as imageline() and imagepolygon()) when drawing with the special color IMG_COLOR_STYLED or lines of images with color IMG_COLOR_STYLEDBRUSHED.
Version
PHP 4.0.6, 5
Return value
Returns TRUE on success or FALSE on failure.