Condividi tramite


HslColor Struct

Definition

public value class HslColor
public value class HslColor
struct HslColor
public struct HslColor
type HslColor = struct
Public Structure HslColor
Inheritance
HslColor

Constructors

HslColor(Double, Double, Double, Double)

Initializes a new instance of the HslColor class with the specified hue, saturation, luminosity, and alpha.

HslColor(Double, Double, Double)

Initializes a new instance of the HslColor class with the specified hue, saturation, and luminosity.

Properties

Alpha

The HslColor's Alpha component

Hue

The HslColor's Hue component

Luminosity

The HslColor's Luminosity component

Saturation

The HslColor's Saturation component

Methods

FromColor(Color)

Converts a Color value to an HslColor. The algorithm was written based on pseudocode available on http://en.wikipedia.org/wiki/HSL_and_HSV.

ToColor()

Converts an HslColor value to a Color. The algorithm was written based on pseudocode available on http://en.wikipedia.org/wiki/HSL_and_HSV.

Applies to