Name

dashedLine( ) — draw a dashed line

Synopsis

GD::Image::dashedLine(x1, y1, x2, y2, colorindex)

The dashedLine( ) method is a simplified way of drawing dashed lines using a standard 4-pixel dash. To create more complicated or varied dashed lines, use the setStyle( ) method and gdStyled constant. The colorindex parameter can be a color index or gdBrushed to draw a dashed line with the current brush.

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.