Direkt zum InhaltDirekt zur SucheDirekt zur Navigation
▼ Zielgruppen ▼

Humboldt-Universität zu Berlin - Faculty of Mathematics and Natural Sciences - Strukturforschung / Elektronenmikroskopie

expandImage.txt

number width,height
number edge = 100;

getnumber("Enter width of edge to create around image:",edge,edge);
Image img=getfrontimage()
img.getSize(width,height)

Image imgoffs = exprsize(width+2*edge,height+2*edge,offset(img,-edge,-edge))
showimage(imgoffs)