On Fri, 23 Nov 2007 22:32:46 -0700 "Idris Samawi Hamid" <[EMAIL PROTECTED]> wrote:
> On Fri, 23 Nov 2007 12:30:48 -0700, Wolfgang Schuster > <[EMAIL PROTECTED]> wrote: > > > \unprotect > > > > \def\fullpagebox > > {\bgroup > > \dowithnextbox > > {\!!widtha\dimexpr\paperwidth/\nextboxwd\relax > > \!!widthb\dimexpr\paperheight/\nextboxht\relax > > \ifdim\!!widtha>\!!widthb > > > > \setbox\nextbox\vbox\!!to\paperheight{\vss\expanded{\scale[\c!width=\paperwidth]{\flushnextbox}}\vss}% > > \else > > > > \setbox\nextbox\hbox\!!to\paperwidth{\hss\expanded{\scale[\c!height=\paperheight]{\flushnextbox}}\hss}% > > \fi > > \setbox\nextbox\hbox{\clip[\c!width=\paperwidth,\c!height=\paperheight]{\flushnextbox}}% > > \startTEXpage > > \flushnextbox > > \stopTEXpage > > \egroup} > > \hbox} > > > > \protect > > > > \starttext > > > > \fullpagebox{\externalfigure[image]} > > > > \stoptext > > Now THAT's the 1st-class gangster we know and love so much ;-) > > Question: How can we, if desired, fit the image to the page dimensions? > See what happens with > > \starttext > > \fullpagebox{\externalfigure[cow][scale=fit]} > > \stoptext Can you try \pagefigure, my solution was to scale a image to the papersize and remove parts. \pagefigure includes a figure within a TEXpage and you scale now the figure to the size of the document. \starttext \pagefigure[cow][width=\paperwidth,height=\paperheight] \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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________