Name
addBox( ) — add a box to the object
Synopsis
$e->addBox( points =>[ $x, $y, $width, $height],
linewidth =>$linewidth,
linetint =>$linetint,
filltint =>$filltint
)
The addBox( )
method adds a square box to the Elements
object. It takes up to four parameters, of which only the
points
parameter is required:
-
points
The
points
attribute should be an anonymous list with the coordinate of the upper left corner of the box followed by the width and height of the box. Remember that the coordinate system used by PostScript uses the lower left corner of the page as its origin.-
linewidth
The
linewidth
attribute functions as described foraddArc( )
.-
linetint
The
linetint
attribute functions as described foraddArc( )
.-
filltint
The
filltint
attribute functions as described foraddArc( )
.
Get Programming Web Graphics with Perl and GNU Softwar now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.