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

Syntax

public ColorSwapFilter(
    Color sourceColor,
    Color swapColor,
    double colorDistance,
    bool isMonoColor,
    bool swapLuminance
)
'Declaration
Public Sub New ( 
    sourceColor As Color,
    swapColor As Color,
    colorDistance As Double,
    isMonoColor As Boolean,
    swapLuminance As Boolean
)
public:
ColorSwapFilter(
    [InAttribute] Color sourceColor, 
    [InAttribute] Color swapColor, 
    [InAttribute] double colorDistance, 
    [InAttribute] bool isMonoColor, 
    [InAttribute] bool swapLuminance
)
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.

Version Information

Lumia Imaging SDK

Supported in: 2.0

See Also

ColorSwapFilter Class

ColorSwapFilter.ColorSwapFilter Members

ColorSwapFilter Overload

Lumia.Imaging.Artistic Namespace