From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/3588 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: graphics inclusion in metapost (real weird metafun) Date: Thu, 14 Dec 2000 10:49:32 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20001214104932.01ad23e0@pop.wxs.nl> References: <3.0.6.32.20001213072304.0128f1d0@pop.wxs.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035394315 18346 80.91.224.250 (23 Oct 2002 17:31:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:31:55 +0000 (UTC) Cc: smuelas@mecanica.upm.es Original-To: ntg-context@ntg.nl In-Reply-To: Xref: main.gmane.org gmane.comp.tex.context:3588 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:3588 Hi, A few days ago Santiago Muelas send me mail in which he discussed the possibility to include graphic in metapost. That discussion focused at core mp support (i.e. extending mp). As an experiment, I hacked graphic inclusion support into the context mp special macros (those that also take care of shading) and the result can be seen at: http://www.pragma-ade.com/pragma-tmp/metafun/metajoke.pdf (metajoke.zip) There is also a zip there for those who want to play with it. All pdftex formats [png,jpg,pdf] are supported as well as reuae of graphics. The main drawback is that one has to know the aspect ratio of a graphic [but I can envision multipass approach] and the a limitation is that one cannot scale the 'currentpicture' afterwards. On the other hand, graphics can be scaled/shifted/rotated ans obey clipping. It proved to be a nearly trivial simple implementation. Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------