* Scale figure to fill a box
@ 2018-02-04 16:35 Wolfgang Schuster
0 siblings, 0 replies; only message in thread
From: Wolfgang Schuster @ 2018-02-04 16:35 UTC (permalink / raw)
To: mailing users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-02-04 16:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-04 16:35 Scale figure to fill a box Wolfgang Schuster
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).