BlendMode

Backed enum of the PDF blend modes (PDF 32000-1:2008 - 11.3.5).

Table of contents

Namespace: Com\Tecnick\Pdf\Graph

enum BlendMode: string

Source: src/BlendMode.php:35

Backed enum of the PDF blend modes (PDF 32000-1:2008 - 11.3.5). The backing value of each case is the /BM name.

Cases

  • Normal = 'Normal'
  • Multiply = 'Multiply'
  • Screen = 'Screen'
  • Overlay = 'Overlay'
  • Darken = 'Darken'
  • Lighten = 'Lighten'
  • ColorDodge = 'ColorDodge'
  • ColorBurn = 'ColorBurn'
  • HardLight = 'HardLight'
  • SoftLight = 'SoftLight'
  • Difference = 'Difference'
  • Exclusion = 'Exclusion'
  • Hue = 'Hue'
  • Saturation = 'Saturation'
  • Color = 'Color'
  • Luminosity = 'Luminosity'

Methods

fromLoose()

Returns the enum case matching the given blend mode.

Accepts an enum case or a name with an optional leading ‘/’. Unknown values return Normal.

public static fromLoose(string|self $value): self

Parameters:

  • $value (string|self): Blend mode name or enum case.

Returns: self

Source: src/BlendMode.php:76