Document Solutions for Word
DS.Documents.Word Assembly / GrapeCity.Documents.Word Namespace / ImageEffectList Class / AddDuotone Method
The first user color to combine with color2 through a linear interpolation to determine the new color for pixels.
The second user color to combine with color1 through a linear interpolation to determine the new color for pixels.

In This Topic
    AddDuotone Method
    In This Topic
    Adds a new Duotone effect into the list.
    Syntax
    'Declaration
     
    Public Function AddDuotone( _
       ByVal color1 As UserColor, _
       ByVal color2 As UserColor _
    ) As Duotone
    public Duotone AddDuotone( 
       UserColor color1,
       UserColor color2
    )

    Parameters

    color1
    The first user color to combine with color2 through a linear interpolation to determine the new color for pixels.
    color2
    The second user color to combine with color1 through a linear interpolation to determine the new color for pixels.

    Return Value

    The inserted Duotone effect.
    See Also