imagesetstyle

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

imagesetstyle( GdImage$image, array$style ): bool

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.

Parameters

image

A GdImage object, 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. Note that style must not be an empty array.

Return Values

Returns true on success or false on failure.

Related Functions

Example of imagesetstyle

Show all examples for imagesetstyle

PHP Version:


Function imagesetstyle:

Image Processing and GD Functions

Most used PHP functions