User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_color.fromstring_string

Table of Contents

TGIS_Color.FromString method

DK11 for .NET | TatukGIS.NDK.TGIS_Color.FromString | Fields | Methods | Properties

Creates a color using the hex string.

Available also on: Delphi | Java | ActiveX | Python.

Syntax

// C#
public static static TGIS_Color FromString(
  string _value
);
' VisualBasic
Public Static Shared Function FromString(
  ByVal _value As String
) As TGIS_Color
// Oxygene
public
  class function FromString(
    _value : String
  ) : TGIS_Color;

Parameters

Name Type Description
_value string
String
a CSS string representation of a color; see remarks:

Result

Type Description
TGIS_Color Created color.

Remarks

Valid CSS color strings are listed below.

hex color with hash symbol#090, #009900, #090a, #009900aa,
hex color without hash symbol090, 009900, 090a, 009900aa,
rgb colorrgb(34, 12, 64, 0.6), rgba(34, 12, 64, 0.6), rgb(34 12 64 / 0.6), rgba(34 12 64 / 0.3) rgb(34.0 12 64 / 60%), rgba(34.6 12 64 / 30%)
hsl colorhsl(30, 100%, 50%, 0.6), hsla(30, 100%, 50%, 0.6), hsl(30 100% 50% / 0.6), hsla(30 100% 50% / 0.6), hsl(30.0 100% 50% / 60%), hsla(30.2 100% 50% / 60%)

2022/11/30 19:28

Page Tools