class AutoBackgroundMode extends QualifierMultiValue

Defines the custom colors to use when resizing using content-aware padding.

Learn more: Content-aware padding with custom color palette

Methods

__construct(string $type)

AutoBackgroundMode constructor.

type(string $type)

Determines which color is automatically chosen for the background.

contrast()

Inverse the color.

Details

__construct(string $type)

AutoBackgroundMode constructor.

Parameters

Name Type Description
$type string The type of the background mode.

AutoBackgroundMode type(string $type)

Determines which color is automatically chosen for the background.

Parameters

Name Type Description
$type string Use the constants defined in this class.

Return Value

AutoBackgroundMode

AutoBackgroundMode contrast()

Inverse the color.

Return Value

AutoBackgroundMode

Constants

VALUE_DELIMITER

TYPE

CONTRAST