Table of Contents

TTMSFNCGraphics.HTMLToColor Method

Parses an HTML hex color string and returns the equivalent color value.

API unit family: TMSFNCGraphics Declaring type: TTMSFNCGraphics

Syntax

class function HTMLToColor(AHTML: string): TTMSFNCGraphicsColor; virtual;

Parameters

Name Description
AHTML HTML color string in the form #RRGGBB or #RGB.

Returns

The parsed color value.