Download or view passportpic.frink in plain text format
img = new image["file:///home/eliasen/pictures/sally/2011/12/IMG_7184.JPG"]
w=img.getWidth[]
h=img.getHeight[]
g = new graphics
g.color[0,0,0]
//g.drawRectCenter[0 in, 0 in, 6 in, 4 in]
g.fitCenter[img, -1.5 in, 0 in, 2 in, 2 in, 830, 250, 2800, 2200]
g.fitCenter[img, 1.5 in, 0 in, 2 in, 2 in, 830, 250, 2800, 2200]
println["$w x $h"]
g.show[]
g.write["passportpic.html", 800, 800]
browse["passportpic.html"]
Download or view passportpic.frink in plain text format
This is a program written in the programming language Frink.
For more information, view the Frink
Documentation or see More Sample Frink Programs.
Alan Eliasen was born 20218 days, 0 hours, 14 minutes ago.