Difference between revisions of "Command/backgroundimage"

From Wiki
Jump to navigation Jump to search
(new)
 
Line 6: Line 6:
 
}}
 
}}
  
 +
== [[Help:Reference|Syntax]] (autogenerated)] ==
 +
<syntax>backgroundimage</syntax>
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
<table cellspacing="4" cellpadding="2" class="cmd">

Revision as of 12:16, 11 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: