Peter Rolf schrieb:
Hi Hans,
The attached example works fine with mkii (text and gfx both use RGB colors). Using mkiv reduces the colorspace of the graphic to GRAY. Sadly PDFX/-4 doesn't allow to mix color profiles of colorspace RGB with GRAY ones. So I'm forced to always use the RGB colorspace...
Best wishes, Peter ------------------------------------------------------------------------
___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ mh, the problem is a little more complex. Mkii reduces rgb(0,0,0) text into gray(0), in mkiv color is as expected. Updated the example...
\setupcolors[state=start] % all colors are in RGB color space (and should stay there) \definecolor[rgbgray] [r=.5,g=.5,b=.5] \definecolor[rgbblack] [r=0,g=0,b=0] \definecolor[rgbwhite] [r=1,g=1,b=1] \startuniqueMPgraphic{foo}{size,color} fill unitsquare xyscaled(\MPvar{size},\MPvar{size}) withcolor \MPvar{color}; draw boundingbox currentpicture withcolor \MPcolor{rgbblack}; \stopuniqueMPgraphic \starttext \uniqueMPgraphic{foo}{size=2.5cm,color=rgbgray} % unwanted gray conversion (mkiv) \uniqueMPgraphic{foo}{size=2.5cm,color=rgbblack} % unwanted gray conversion (mkiv) \uniqueMPgraphic{foo}{size=2.5cm,color=rgbwhite} % unwanted gray conversion (mkiv) \color[rgbgray] Gray text. % ok \blank \color[rgbblack] Black text. % unwanted gray conversion (mkii) \blank \framed[background=color,backgroundcolor=rgbblack,foregroundcolor=rgbwhite] {White text} % unwanted gray conversion of background color (mkii) \stoptext