User Tools

Site Tools


api:dk11:java:tatukgis.jdk.tgis_color.tostring_boolean_boolean

Table of Contents

TGIS_Color.ToString method

DK11 for Java | tatukgis.jdk.TGIS_Color.ToString | Fields | Methods | Properties

Converts the color to a hexadecimal string.

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

Syntax

// Java
public java.lang.String ToString(
  bool _addAlpha,
  bool _addHash
);
// Oxygene
public
  function ToString(
    _addAlpha : Boolean = True;
    _addHash : Boolean = False
  ) : String;

Parameters

Name Type Description
_addAlpha bool
Boolean
if true, the result string will contain an alpha value (this is default); otherwise only RGB values will be returned
_addHash bool
Boolean
if True, the result string will contain the hash (#) symbol at the beginning; False is default value

Result

Type Description
java.lang.String
String
Hexadecimal color representation as a string.
2022/11/30 19:29

Page Tools