VintaSoft Imaging .NET SDK 12.3: Documentation for .NET developer
Vintasoft.Imaging.ImageColors Namespace / IndexedColor Class / IndexedColor Constructors / IndexedColor Constructor(Palette,ColorBase)
Syntax Exceptions Remarks Requirements SeeAlso
In This Topic
    IndexedColor Constructor(Palette,ColorBase)
    In This Topic
    Initializes a new instance of the IndexedColor class.
    Syntax
    'Declaration
    
    Public Function New( _
    ByVal palette
    Palette that contains the color.
    As Vintasoft.Imaging.Palette, _
    ByVal color
    Color.
    As ColorBase _
    )

    Parameters

    palette
    Palette that contains the color.
    color
    Color.
    Exceptions
    ExceptionDescription
    Thrown if palette or color is null.
    Remarks

    This constructor creates an indexed color, which is nearest to the color in palette.

    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