7 Jul
2018
7 Jul
'18
10:27 p.m.
On 7/7/2018 8:58 PM, Marco Patzer wrote:
Hi!
How to scale an image in MetaPost, maintaining the aspect ratio (without specifying the height explicitly)?
Example:
\setupexternalfigures [location=default] \starttext \externalfigure [cow][width=5cm]
\startMPcode draw externalfigure "cow" scaled 5cm; \stopMPcode \stoptext it's all in the metafun manual
xsized 5cm ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------