TCPDF::Rect( $x,  $y,  $w,  $h,  $style = '',  $border_style = array(),  $fill_color = array() )

Draws a rectangle.


Description Description

See also See also


Top ↑

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.

$style

(Optional) (string) Style of rendering. See the getPathPaintOperator() function for more information.

Default value: ''

$border_style

(Optional) (array) Border style of rectangle. Array with keys among the following: <ul> <li>all: Line style of all borders. Array like for SetLineStyle().</li> <li>L, T, R, B or combinations: Line style of left, top, right or bottom border. Array like for SetLineStyle().</li> </ul> If a key is not present or is null, the correspondent border is not drawn. 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()


Top ↑

Source Source

File: includes/lib/tcpdf/tcpdf.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.