ImageSetStyle

(PHP 4 >= 4.0.6)

ImageSetStyle -- Set the style for line drawing

Description

int imagesetstyle ( resource im, array style)

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.

The style parameter is an array of pixels. Following example script draws a dashed line from upper left to lower right corner of the canvas:

See also ImageSetBrush(), ImageLine().

Note: This function was added in PHP 4.0.6