ColorSwapFilter Constructor (Color, Color, Double, Boolean, Boolean)

Creates and initializes a new ColorSwapFilter with specified settings.

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

Lumia.Imaging.Artistic.ColorSwapFilter = function(sourceColor, swapColor, colorDistance, isMonoColor, swapLuminance);

Parameters

sourceColor
Type: Windows.UI.Color
Specifies the color that should be converted.

The alpha-component is ignored.

swapColor
Type: Windows.UI.Color
Specifies which color sourceColor should be converted to.

The alpha-component is ignored.

colorDistance
Type: System.Double
Specifies the tolerance level of the effect.

Range [0.0, 1.0].

isMonoColor
Type: System.Boolean
Specifies if the other colors should be converted to grayscale or be preserved.
swapLuminance
Type: System.Boolean
Controls if the luminance should be included in the color swap.

Lumia Imaging SDK

Supported in: 2.0
Show: