ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl, roegel@lorraine.loria.fr
Subject: Re: shading question
Date: Wed, 01 Nov 2000 09:12:06 +0100	[thread overview]
Message-ID: <3.0.6.32.20001101091206.01cca5d0@pop.wxs.nl> (raw)
In-Reply-To: <200010312129.WAA23455@bar.loria.fr>

At 10:29 PM 10/31/00 +0100, Denis B. Roegel wrote:
>
>In the following example, the top parts of the circles are
>slightly trimmed, at least when I view them with acroread.
>Is this normal?

This has to do with the fact that graphics that need resources [like
shading] are put in an xform object and such an object always clips. And,
clipping it kind of inaccurate, I have spend many days experimenting with
this and the current implementation is about the best we can get out of it;
think of making sure that only the positive quadrant is used and so. 

The best way out is to slightly enlarge the bbox, so at the end of the
picture say: 

setbounds currentpicture to boundingbox currentpicture enlarged 1bp ; 

or use a value 50% of the linewidth. 

Because overlays are centered, a larger than normal one will still be okay
from the perspective of context, 

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


      parent reply	other threads:[~2000-11-01  8:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-31 21:29 Denis B. Roegel
2000-10-31 22:02 ` shading, Trying shading example, missing metafun.mem Thomas Porter
2000-10-31 22:45   ` Christopher Tipper
2000-11-01  8:12 ` Hans Hagen [this message]

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.20001101091206.01cca5d0@pop.wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    --cc=roegel@lorraine.loria.fr \
    /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).