ExampleBackgroundImage

Example how to import an image to scale.

Drawj2d output

# 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}

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.