Search Results for

    Show / Hide Table of Contents

    THSLColor.DistanceSquared Method

    Returns the distance between 2 colors. Not that this is not the euclidean distance, but a distance calculated to improve Hue matching. When converting cell colors, we try to preserve hues, so even a very pale red cell will be converted to bright red and not white or a very pale blue. This make it different from standard color matching as is done when adjusting images to a color palette, and where hue is not as important as here.

    Syntax

    Namespace: FlexCel.Core

    public static Double DistanceSquared(Double hue1, Double sat1, Double hue2, Double sat2)

    Parameters

    <-> Parameter Type Description
    hue1 Double
    sat1 Double
    hue2 Double
    sat2 Double

    See also

    • THSLColor
    In This Article
    Back to top FlexCel Studio for the .NET Framework v7.24.0.0
    © 2002 - 2025 tmssoftware.com