TCPDF::RoundedRect( $x, $y, $w, $h, $r, $round_corner = '1111', $style = '', $border_style = array(), $fill_color = array() )
Draws a rounded rectangle.
Description Description
Parameters Parameters
- $x
-
(Required) (float) Abscissa of upper-left corner.
- $y
-
(Required) (float) Ordinate of upper-left corner.
- $w
-
(Required) (float) Width.
- $h
-
(Required) (float) Height.
- $r
-
(Required) (float) the radius of the circle used to round off the corners of the rectangle.
- $round_corner
-
(Optional) (string) Draws rounded corner or not. String with a 0 (not rounded i-corner) or 1 (rounded i-corner) in i-position. Positions are, in order and begin to 0: top right, bottom right, bottom left and top left. Default value: all rounded corner ("1111").
Default value: '1111'
- $style
-
(Optional) (string) Style of rendering. See the getPathPaintOperator() function for more information.
Default value: ''
- $border_style
-
(Optional) (array) Border style of rectangle. Array like for SetLineStyle(). Default value: 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()
Source Source
File: includes/lib/tcpdf/tcpdf.php
Changelog Changelog
Version | Description |
---|---|
2.1.000 | Introduced. |