Am 2010-06-30 um 22:47 schrieb Wolfgang Schuster:
You can change the boundingbox in the metapost graphic (the white background was required for the cow figure because it has a transparent background)
Thank you! I used an opaque picture for my tests. I played a bit with different shapes, I like my rounded rectangle best: \startuniqueMPgraphic{mpshadow} ox := -7 ; % offset x oy := -7 ; % offset y bx := 5 ; % bleed x by := 5 ; % bleed y rx := 7 ; % corner radius x ry := 7 ; % corner radius y for dx = 0 upto 40: dy := dx ; xa := dx + ox - bx/2; xb := \overlaywidth - dx + ox + bx/2; ya := dy + oy - by/2; yb := \overlayheight - dy + oy + by/2; % % rectangle % fill (xa,ya)--(xb,ya)--(xb,yb)--(xa,yb)--cycle % withcolor transparent("normal", .04, black) ; % rounded rectangle fill (xa, ya + ry)--- (xa, yb - ry).. (xa + rx, yb)--- (xb - rx, yb).. (xb, yb - ry)--- (xb, ya + ry).. (xb - rx, ya)--- (xa + rx, ya)..cycle withcolor transparent("normal", .04, black) ; % % super ellipse % hx := xb / 2; % hy := yb / 2; % fill (xa + rx, ya + ry)... % (xa, ya + hy)... % (xa + rx, yb - ry)... % (xa + hx, yb)... % (xb - rx, yb - ry)... % (xb, ya + hy)... % (xb - rx, ya + ry)... % (xa + hx, ya)...cycle % withcolor transparent("normal", .04, black) ; endfor; setbounds currentpicture to OverlayBox ; \stopuniqueMPgraphic \defineoverlay[shadow][\useMPgraphic{mpshadow}] \starttext \rotate[rotation=12]{% \externalfigure[koe][width=50mm,background=shadow] } \stoptext Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)