Command/backgroundimage

From Wiki
< Command
Revision as of 14:40, 15 October 2019 by Usonianhorizon (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


\backgroundimage

Syntax (autogenerated)

\backgroundimage{...}{...}{...}{...}
{...}number
{...}dimension
{...}dimension
{...}command


Syntax

\backgroundimage {...}{...}{...}{...}
{...} repeat type (1=xy, 2=x, 3=y
{...} width
{...} height
{...} contents


Description

This allows for tiled backgrounds, using any image.

The image is repeated until it equals width and height (with repeat type 1, otherwise just width or height).

Example

\defineoverlay
  [pattern]
  [\backgroundimage{1}{\overlaywidth}{\overlayheight}{\externalfigure[bg.jpg]}]

\setupbackgrounds[page][background=pattern]

\starttext
\input knuth
\stoptext


See also

Help from ConTeXt-Mailinglist/Forum

All issues with: