diff options
author | Hans Hagen <pragma@wxs.nl> | 2023-01-05 20:22:55 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2023-01-05 20:22:55 +0100 |
commit | 659b8f28e591006b6d0669c05d809d6ccf60cec0 (patch) | |
tree | 287a360fe83cfb90ccf7507c46022771fc11da4e /tex/context/base/mkxl/mlib-pps.lmt | |
parent | 705b807c950a697d3c8be592c452a6fb3e561c7e (diff) | |
download | context-659b8f28e591006b6d0669c05d809d6ccf60cec0.tar.gz |
2023-01-05 17:46:00
Diffstat (limited to 'tex/context/base/mkxl/mlib-pps.lmt')
-rw-r--r-- | tex/context/base/mkxl/mlib-pps.lmt | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/tex/context/base/mkxl/mlib-pps.lmt b/tex/context/base/mkxl/mlib-pps.lmt index 209656fbe..b8f448964 100644 --- a/tex/context/base/mkxl/mlib-pps.lmt +++ b/tex/context/base/mkxl/mlib-pps.lmt @@ -1339,18 +1339,25 @@ end local function bm_process(object,prescript,before,after) local bm_xresolution = prescript.bm_xresolution + local bm_yresolution = prescript.bm_yresolution if bm_xresolution then - before[#before+1] = f_cm_b(cm(object)) +-- before[#before+1] = f_cm_b(cm(object)) +local sx, rx, ry, sy, tx, ty = cm(object) +local postscript = object.postscript before[#before+1] = function() - figures.bitmapimage { - xresolution = tonumber(bm_xresolution), - yresolution = tonumber(prescript.bm_yresolution), - width = 1/basepoints, - height = 1/basepoints, - data = object.postscript - } +context.MPLIBscaledcm(function() + figures.bitmapimage { + xresolution = tonumber(bm_xresolution), + yresolution = tonumber(bm_yresolution), + width = 1/basepoints, + height = 1/basepoints, + data = postscript, + format = "png", + } + end +, sx, rx, ry, sy, tx, ty) end - before[#before+1] = s_cm_e +-- before[#before+1] = s_cm_e object.path = false object.color = false object.grouped = true |