Hi Hans,
I want to use a few graphics as page backgrounds but with the \scale command
the image always stays within the borders of the page.
Can you add a command (probably easier than adding such a function to
\scale)
which does as same as in the second row of the example below where the image
extends outside of the borders of the frame. A option to clip parts –
which can be
disabled – of the image which are outside of the frame would be a nice
extension
to this command (e.g. in case you want a image in a table cell).
\setupexternalfigure[location=default]
\defineframed
[PageBorder]
[offset=overlay,
rulethickness=2pt,
framecolor=red,
width=6cm,
height=6cm]
\starttext
\startcombination[nx=2,ny=1,distance=4cm]
{\PageBorder{\externalfigure[hacker][factor=fit]}}{}
{\PageBorder{\externalfigure[mill] [factor=fit]}}{}
\stopcombination
\blank[4cm]
\startcombination[nx=2,ny=1,distance=4cm]
{\PageBorder{\clap{\externalfigure[hacker][height=6cm]}}}{}
{\PageBorder {\externalfigure[mill] [width=6cm]}} {}
\stopcombination
\stoptext
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________