Manuals

 

SetaPDF_Stamp::setAlpha()

Description

class SetaPDF_Stamp {
void setAlpha ( float $alpha[, string $blendmode='Normal'] ) }

With this method you can define the opacity and the blendmode of a stamp.

Parameters

$alpha

The opacity: A value between 0 and 1, whereas 1 is defined as 100% opacity

$blendmode

The blendmode. There are following modes available, which are described in detail in the PDF specification (11.3.5):

  • Normal (standard)
  • Multiply
  • Screen
  • Overlay
  • Darken
  • Lighten
  • ColorDodge
  • ColorBurn
  • HardLight
  • SoftLight
  • Difference
  • Exclusion
  • Hue
  • Saturation
  • Color
  • Luminosity

The declaration is case-sensitive.