User Tools

Site Tools


api:dk11:delphi:gistypesui.tgis_color.fromahsl_single_single_single_single

Table of Contents

TGIS_Color.FromAHSL method

DK11 for Delphi | GisTypesUI.TGIS_Color.FromAHSL | Fields | Methods | Properties

Create color from alpha, hue, saturation and luminance.

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
public
  class function FromAHSL(
    const _a : Single;
    const _h : Single;
    const _s : Single;
    const _l : Single
  ) : TGIS_Color; static; inline;
// C++ Builder
public:
  static TGIS_Color* FromAHSL(
    const float _a,
    const float _h,
    const float _s,
    const float _l
  );

Parameters

Name Type Description
_a Single alpha; expected value: 0..1
_h Single hue; expected value: 0..1
_s Single saturation; expected value: 0..1
_l Single luminance; expected value: 0..1

Result

Type Description
TGIS_Color Created color.
2020/05/07 01:10

Page Tools