TCPDF::Polygon( $p, $style = '', $line_style = array(), $fill_color = array(), $closed = true )
Draws a polygon.
Description Description
Parameters Parameters
- $p
-
(Required) (array) Points 0 to ($np - 1). Array with values (x0, y0, x1, y1,..., x(np-1), y(np - 1))
- $style
-
(Optional) (string) Style of rendering. See the getPathPaintOperator() function for more information.
Default value: ''
- $line_style
-
(Optional) (array) Line style of polygon. Array with keys among the following: <ul> <li>all: Line style of all lines. Array like for SetLineStyle().</li> <li>0 to ($np - 1): Line style of each line. Array like for SetLineStyle().</li> </ul> If a key is not present or is null, not draws the line. Default value is default line style (empty array).
Default value: array()
- $fill_color
-
(Optional) (array) Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K) or array(C,M,Y,K,SpotColorName). Default value: default color (empty array).
Default value: array()
- $closed
-
(Optional) (boolean) if true the polygon is closes, otherwise will remain open
Default value: true
Source Source
File: includes/lib/tcpdf/tcpdf.php
Changelog Changelog
Version | Description |
---|---|
2.1.000 | Introduced. |