Search Results for

    Show / Hide Table of Contents

    Struct HLSColor

    Structure which allows HLS color manipulations

    Namespace: FastReport.BG.Styling
    Assembly: FastReport.BG.dll
    Syntax
    public struct HLSColor

    Constructors

    HLSColor(Color)

    Construct HLSColor by converting from System.Drawing.Color structure

    Declaration
    public HLSColor(Color rgb)
    Parameters
    Type Name Description
    System.Drawing.Color rgb

    Base color

    Fields

    hue

    HUE

    Declaration
    public double hue
    Field Value
    Type Description
    System.Double

    luminosity

    Luminosity.

    Declaration
    public double luminosity
    Field Value
    Type Description
    System.Double

    saturation

    Saturation.

    Declaration
    public double saturation
    Field Value
    Type Description
    System.Double

    Methods

    GetHighlightColor(Color, Double)

    Increase luminosity of the given color

    Declaration
    public static Color GetHighlightColor(Color rgb, double luminosity)
    Parameters
    Type Name Description
    System.Drawing.Color rgb

    System.Drawing.Color which luminosity should be increased.

    System.Double luminosity

    The value of luminosity from 0 to 1 (e.g. 0.1)

    Returns
    Type Description
    System.Drawing.Color

    System.Drawing.Color with increased luminosity

    ToColor()

    Convert HLSColor to System.Drawing.Color

    Declaration
    public Color ToColor()
    Returns
    Type Description
    System.Drawing.Color

    System.Drawing.Color

    Back to top © 2021-2022 Copyright Fast Reports Inc.