At 19:48 12/04/2003 +0200, Severin Obertuefer wrote:
hi all
I made a MetaPost graphic and I want to use this graphic for a background. The graphic is too large and I want to clip it to the size of 84mm width and 54mm height. With "clip currentpicture to unitsquare xyscaled (86mm,54mm)"
xysized(...,...) since xyscaled depend to much on the curren dimensions
I get the size I wanted but the clipped field should be placed in the center of the currenpicture. I tried:
"clip currentpicture to unitsquare xyscaled (86mm,54mm) shifted center boundingbox currentpicture"
currentpicture := currentpicture shifted -center currentpicture ; or currentpicture := currentpicture shifted - llcorner currentpicture ; may help, depending on where your ref point is located first shift, them clip to fullsquare (instead of unitsquare) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------