setBackgroundColor

setBackgroundColor

BASIC / ADVANCED / PREMIUM

Sets a background color to the active slide.

Description
public setBackgroundColor($position, $options = array())

This method sets a background color to the active slide.

Parameters

color

HEX color.

Code samples

Example #1

The resulting PPTX looks like:

Release notes
  • phppptx 1.0:
    • new method.