Hi, I started using 'MPinitialisation' to store some global variables. Much easier than passing them over and over again to MP macros. Sadly this way is inaccurate with the unit 'px' (no such problems with 'pt'). See attached example. The frame gives the exact size, showing that the MP graphic is 'out of bounds'.
MTXrun | current version: 2010.10.22 16:46 same result for both marks Peter
\setuppagenumber[state=stop] \pdfpxdimen49336sp \startMPinitializations px:= .7528125; fooWidth := 600px; fooHeight := 400px; \stopMPinitializations \startuniqueMPgraphic{foo} fill unitsquare xyscaled(fooWidth,fooHeight) withcolor transparent(1,0.2,blue); \stopuniqueMPgraphic \starttext \framed[offset=overlay,width=600px,height=400px,framecolor=darkblue]{\uniqueMPgraphic{foo}} \stoptext
pixel.pdf
Description: Adobe PDF document
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________