addBackgroundImage

addBackgroundImage

BASIC / ADVANCED / PREMIUM

Inserts a background image into the active slide.

Description
public addBackgroundImage($image, $options = array())

This method allows the insertion of a background image into the active slide.

Parameters

image

Image path.

options

Key Type Description
overwrite bool If true overwrites existing background images. Default as true.
tilePictureAsTexture bool Default as false.
transparency int From 0 to 100.
Exceptions

Image doesn't exist.

Code samples

Example #1

The resulting PPTX looks like:

Release notes
  • phppptx 1.0:
    • new method.