Skip to main content

Image Background

HTML Tag
vjs-image-background

This component configures sets an image background for a SurfaceComponent or PaperComponent, and pastes it at the surface/paper origin.

Usage

Declare the image background component inside a SurfaceComponent, SurfaceProvider, PaperComponent or PaperProvider and provide it a url:

<vjs-surface [renderOptions]="renderOptions">
...
<vjs-image-background url="/img/351032562.jpg"/>
</vjs-surface>

Definition

Inputs

NameTypeDescription
urlstringThe url to load