C# Класс AForge.Imaging.HSL

HSL components
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Hue int
Luminance float
Saturation float

Открытые методы

Метод Описание
FromRGB ( RGB rgb ) : HSL

Convert from RGB to HSL color space.

FromRGB ( RGB rgb, HSL hsl ) : void

Convert from RGB to HSL color space.

See HSL and HSV Wiki for information about the algorithm to convert from RGB to HSL.

HSL ( ) : System

Initializes a new instance of the HSL class.

HSL ( int hue, float saturation, float luminance ) : System

Initializes a new instance of the HSL class.

ToRGB ( ) : RGB

Convert the color to RGB color space.

ToRGB ( HSL hsl, RGB rgb ) : void

Convert from HSL to RGB color space.

Приватные методы

Метод Описание
Hue_2_RGB ( float v1, float v2, float vH ) : float

Описание методов

FromRGB() публичный статический метод

Convert from RGB to HSL color space.
public static FromRGB ( RGB rgb ) : HSL
rgb RGB Source color in RGB color space.
Результат HSL

FromRGB() публичный статический метод

Convert from RGB to HSL color space.

See HSL and HSV Wiki for information about the algorithm to convert from RGB to HSL.

public static FromRGB ( RGB rgb, HSL hsl ) : void
rgb RGB Source color in RGB color space.
hsl HSL Destination color in HSL color space.
Результат void

HSL() публичный метод

Initializes a new instance of the HSL class.
public HSL ( ) : System
Результат System

HSL() публичный метод

Initializes a new instance of the HSL class.
public HSL ( int hue, float saturation, float luminance ) : System
hue int Hue component.
saturation float Saturation component.
luminance float Luminance component.
Результат System

ToRGB() публичный метод

Convert the color to RGB color space.
public ToRGB ( ) : RGB
Результат RGB

ToRGB() публичный статический метод

Convert from HSL to RGB color space.
public static ToRGB ( HSL hsl, RGB rgb ) : void
hsl HSL Source color in HSL color space.
rgb RGB Destination color in RGB color space.
Результат void

Описание свойств

Hue публичное свойство

Hue component.
Hue is measured in the range of [0, 359].
public int Hue
Результат int

Luminance публичное свойство

Luminance value.
Luminance is measured in the range of [0, 1].
public float Luminance
Результат float

Saturation публичное свойство

Saturation component.
Saturation is measured in the range of [0, 1].
public float Saturation
Результат float