BlendMode
class BlendMode extends EffectQualifier
Defines the mode of blending to use when overlaying an image.
Learn more: Overlay blending effects
Methods
Add an overlay image blended using the 'multiply' blend mode.
Add an overlay image blended using the 'screen' blend mode.
Add an overlay image blended using the 'overlay' blend mode.
Add an overlay image blended using the 'mask' blend mode.
Add an overlay image blended using the 'anti-removal' blend mode.
Details
static BlendMode
multiply()
Add an overlay image blended using the 'multiply' blend mode.
In this mode, each pixel of the image is made darker according to the pixel value of the overlaid image.
static BlendMode
screen()
Add an overlay image blended using the 'screen' blend mode.
In this mode, each pixel of the image is made brighter according to the pixel value of the overlaid image.
static BlendMode
overlay()
Add an overlay image blended using the 'overlay' blend mode.
In this mode, each pixel of the image is made darker or brighter according to the pixel value of the overlaid image.
static BlendMode
mask()
Add an overlay image blended using the 'mask' blend mode.
In this mode, each pixel of the image is 'cut-out' according to the non-transparent pixels of the overlaid image.
static BlendMode
antiRemoval(int $level = null)
Add an overlay image blended using the 'anti-removal' blend mode.
In this mode, the overlay is slightly distorted to prevent easy removal.
Constants
MULTIPLY |
Each pixel of the image is made darker according to the pixel value of the overlaid image. |
SCREEN |
Each pixel of the image is made brighter according to the pixel value of the overlaid image. |
OVERLAY |
Each pixel of the image is made darker or brighter according to the pixel value of the overlaid image. |
MASK |
Each pixel of the image is 'cut-out' according to the non-transparent pixels of the overlaid image. |
ANTI_REMOVAL |
The overlay is slightly distorted to prevent easy removal. |