forked from reingart/pyfpdf
-
Notifications
You must be signed in to change notification settings - Fork 1
DashedLine
Google Code Exporter edited this page Mar 18, 2015
·
1 revision
fpdf.dashed_line(x1,y1,x2,y2, dash_length=1, space_length=1)
Draw a dashed line between two points. Same interface as line() except the two parameters dash_length and space_length.
x1:
Abscissa of first point y1: Ordinate of first point x2: Abscissa of second point y2: Ordinate of second point dash_length: Length of the dash space_length: Length of the space between dashes
# Adds a dashed line beginning at point (10,30), ending at point(110,30) with a dash length of 1 and a space length of 10.
pdf.dashed_line(10, 30, 110, 30, 1, 10)