Drawj2d Wiki
Draw vector graphics to scale using a descriptive language
Brought to you by:
qwert2003
Example how to import an image to scale.
# drawj2d -Tsvg -W 210 -H 150 ExampleBackgroundImage.hcl
offset 20 60
font 4.5
unitlength [expr 1/50] m
# scanned drawing (Salginatobel bridge)
# filename resolution (dpi) insertion point (px) drawing scale 1:
image Salgina.jpg 200 79 460 50
# draw on top of the image
pen blue
dot
label 0/0 NW
# vertical dimension line
mr [mm -5 0]
dimlinerel 0 0.65
# horizontal dimension line
m 0 [mm -25]
dimline [tx 6.7]
# text box
pen white
fillrect [mm 25 39 75 30]
pen blue
mr [mm 3 7]
text {Strassenbrücke über das Salginatobel}
text {Armierungsplan der Mittelöffnung}
text {Ingenieurbureau Maillart, Genf, 1929}
text {Quelle: ETH Zürich, Bildarchiv}