User Tools

Site Tools


api:dk11:delphi:gistypesui.tgis_color.fromrgb_cardinal

Table of Contents

TGIS_Color.FromRGB(Cardinal) method

DK11 for Delphi | GisTypesUI.TGIS_Color.FromRGB | Overloads | Fields | Methods | Properties

Create color from integer in RGB form (Red Green Blue).

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
public
  class function FromRGB(
    const _value : Cardinal
  ) : TGIS_Color; overload; static; inline;
// C++ Builder
public:
  static TGIS_Color* FromRGB(
    const unsigned _value
  ) /* overload */;

Parameters

Name Type Description
_value Cardinal color value as 4 byte little endian integer; bytes from most significant are: ignored, red, green, nlue

Result

Type Description
TGIS_Color Created color.

References

2020/05/27 01:07

Page Tools