ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: smuelas@mecanica.upm.es
Subject: graphics inclusion in metapost (real weird metafun)
Date: Thu, 14 Dec 2000 10:49:32 +0100	[thread overview]
Message-ID: <3.0.6.32.20001214104932.01ad23e0@pop.wxs.nl> (raw)
In-Reply-To: <Pine.LNX.4.30.0012130737160.31521-100000@simux.mecanica.up m.es>

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
-------------------------------------------------------------------------


       reply	other threads:[~2000-12-14  9:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3.0.6.32.20001213072304.0128f1d0@pop.wxs.nl>
     [not found] ` <Pine.LNX.4.30.0012130737160.31521-100000@simux.mecanica.up m.es>
2000-12-14  9:49   ` Hans Hagen [this message]
2000-12-15 13:01     ` another nice new metapost trick: outline fonts Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3.0.6.32.20001214104932.01ad23e0@pop.wxs.nl \
    --to=pragma@wxs.nl \
    --cc=smuelas@mecanica.upm.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).