Difference between revisions of "Command/backgroundimage"

From Wiki
Jump to navigation Jump to search
 
Line 6: Line 6:
 
}}
 
}}
  
== [[Help:Reference|Syntax]] (autogenerated)] ==
+
== [[Help:Reference|Syntax]] (autogenerated) ==
 
<syntax>backgroundimage</syntax>
 
<syntax>backgroundimage</syntax>
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==

Latest revision as of 14:40, 15 October 2019


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