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

Creates and initializes a new ColorSwapEffect with specified image source and settings.

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

Syntax

public ColorSwapEffect(
    IImageProvider imageSource,
    Color sourceColor,
    Color swapColor,
    double colorDistance,
    bool isMonoColor,
    bool swapLuminance
)
'Declaration
Public Sub New ( 
    imageSource As IImageProvider,
    sourceColor As Color,
    swapColor As Color,
    colorDistance As Double,
    isMonoColor As Boolean,
    swapLuminance As Boolean
)
public:
ColorSwapEffect(
    [InAttribute] IImageProvider^ imageSource, 
    [InAttribute] Color sourceColor, 
    [InAttribute] Color swapColor, 
    [InAttribute] double colorDistance, 
    [InAttribute] bool isMonoColor, 
    [InAttribute] bool swapLuminance
)
Lumia.Imaging.Artistic.ColorSwapEffect = function(imageSource, 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: 3.0

See Also

ColorSwapEffect Class

ColorSwapEffect.ColorSwapEffect Members

ColorSwapEffect Overload

Lumia.Imaging.Artistic Namespace