[metapost] Including an image into a metapost figure

nicola vitacolo at dimi.uniud.it
Fri Dec 22 16:32:17 CET 2006


In article <20061220232830.GA9595 at malaquias.gwiceb1>,
 j.romildo at gmail.com wrote:

> I need to draw a figure in metapost and this figure will be constructed
> with images in an extern format (png). How can I "draw" an extern image
> on my metpost figure?

I did this with MetaFun's externalfigure, e.g.:

u := 5mm;
beginfig(0);
 externalfigure "picture.png" scaled 15u shifted origin;
endfig;

You have to compile this with mptopdf, not with mpost.

Nicola



More information about the metapost mailing list