From 659b8f28e591006b6d0669c05d809d6ccf60cec0 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Thu, 5 Jan 2023 20:22:55 +0100 Subject: 2023-01-05 17:46:00 --- tex/context/base/mkxl/mlib-pps.lmt | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) (limited to 'tex/context/base/mkxl/mlib-pps.lmt') 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 -- cgit v1.2.3