ColorSwapEffect Constructor (Color, Color, Double, Boolean, Boolean)

Creates and initializes a new ColorSwapEffect with specified settings.

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

public:
ColorSwapEffect(
	[InAttribute] Color sourceColor, 
	[InAttribute] Color swapColor, 
	[InAttribute] double colorDistance, 
	[InAttribute] bool isMonoColor, 
	[InAttribute] bool 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: 3.0
Show: