BackgroundImage
Qubes 9.0 Returns a string describing a background image.
Syntax
BackgroundImage(url[, size, position, repeat])
size = size of image (contain by default)
position = position of background image in cell (center by default)
repeat = repetition of background image (no-repeat by default)
Remarks
The result of this function is used by the Fill function. Not that design-time preview is currently not supported.
The size parameter corresponds to CSS background-size, the default value is contain, which means the image is scaled proportionally to fit the cell.
The position parameter corresponds to CSS background-position, the default value is center, which means both an horizontal and a vertical centering.
The repeat parameter corresponds to CSS background-position, the default value is no-repeat, meaning the background image is not repeated.
Examples
Display the picture scaled to fit the cell and centered:Fill(BackgroundImage('https://myserver/mypicture'))
Display the picture scaled to fit the cell and aligned right:Fill(BackgroundImage('https://myserver/mypicture', 'contain', 'right'))
Display the picture scaled to 10 by 10 pixels, and repeat in both directions to fill the cell:Fill(BackgroundImage('https://myserver/mypicture', '10px 10px', '', 'repeat-x repeat-y'))