Document Solutions for Word
DS.Documents.Word Assembly / GrapeCity.Documents.Word Namespace / ImageEffectList Class / InsertDuotone Method
The effect index in the list.
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
    InsertDuotone Method
    In This Topic
    Inserts a new Duotone effect into the list.
    Syntax
    'Declaration
     
    Public Function InsertDuotone( _
       ByVal index As System.Integer, _
       ByVal color1 As UserColor, _
       ByVal color2 As UserColor _
    ) As Duotone
    public Duotone InsertDuotone( 
       System.int index,
       UserColor color1,
       UserColor color2
    )

    Parameters

    index
    The effect index in the list.
    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