BlendEffect Constructor (IImageProvider, IImageProvider, IImageProvider, BlendFunction, Double)

Creates and initializes a new BlendEffect with specified background, foreground and mask image sources, a blend function and a global alpha value.

Namespace: Lumia.Imaging.Compositing
Assembly: Lumia.Imaging (in Lumia.Imaging.dll) Version: 255.255.255.255

Lumia.Imaging.Compositing.BlendEffect = function(backgroundSource, foregroundSource, maskSource, blendFunction, globalAlpha);

Parameters

backgroundSource
Type: Lumia.Imaging.IImageProvider
The background image source.
foregroundSource
Type: Lumia.Imaging.IImageProvider
The foreground image source.
maskSource
Type: Lumia.Imaging.IImageProvider
The mask image source. Determines how the ForegroundSource image is blended onto the background image.
blendFunction
Type: Lumia.Imaging.Compositing.BlendFunction
The blend function to use.
globalAlpha
Type: System.Double
The amount that the blend operation will affect the final result.

Range [-2.5, 2.5], where 0.0 gives a result identical to the source image and 1.0 means the result of the blend operation is fully visible.

See BlendFunction for specifics, as some blend functions ignore this value.

Lumia Imaging SDK

Supported in: 3.0, 2.0
Show: