VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.ImageProcessing.Document Namespace / AdvancedReplaceColorCommand Class / CreateColorGradientReplaceCommand(Rgb24Color,Rgb24Color,Double,Rgb24Color,Double) Method
Syntax Requirements SeeAlso
In This Topic
    CreateColorGradientReplaceCommand(Rgb24Color,Rgb24Color,Double,Rgb24Color,Double) Method (AdvancedReplaceColorCommand)
    In This Topic
    Creates command, which replaces colors along linear color gradient to the specifed color.
    Syntax
    'Declaration
    
    Public Shared Function CreateColorGradientReplaceCommand( _
    ByVal startColor
    Start color of linear gradient.
    As Vintasoft.Imaging.ImageColors.Rgb24Color, _
    ByVal stopColor
    Stop color of linear gradient.
    As Vintasoft.Imaging.ImageColors.Rgb24Color, _
    ByVal radius
    Radius of color gradient in RGB color space.
    As Double, _
    ByVal replaceColor
    A color, which should be used instead of color gradient.
    As Vintasoft.Imaging.ImageColors.Rgb24Color, _
    ByVal replaceInterpolationRadius
    A radius, in range from 0 to 1, which specifies when interpolation should be used for color replacement.
    As Double _
    ) As AdvancedReplaceColorCommand

    Parameters

    startColor
    Start color of linear gradient.
    stopColor
    Stop color of linear gradient.
    radius
    Radius of color gradient in RGB color space.
    replaceColor
    A color, which should be used instead of color gradient.
    replaceInterpolationRadius
    A radius, in range from 0 to 1, which specifies when interpolation should be used for color replacement.

    Return Value

    A new instance of AdvancedReplaceColorCommand.
    Requirements

    Target Platforms: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also