record TColorPair

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TColorPair = record

Description

A combination of two colors, primarily used for displaying text with the first color being on top and the second being on bottom. The format for specifying colors is defined as TPixelFormat.A8R8G8B8.

Overview

Fields

First: TIntColor;
Second: TIntColor;
Values: array[0..1] of TIntColor;

Methods

function HasAlpha: Boolean;
function HasGradient: Boolean;

Description

Fields

First: TIntColor;

First color entry, which can be reinterpreted as top or left color depending on context.

Second: TIntColor;

Second color entry, which can be reinterpreted as bottom or right color depending on context.

Values: array[0..1] of TIntColor;

Two color pair represented as an array.

Methods

function HasAlpha: Boolean;

Returns True if at least one of the colors has non-zero alpha channel.

function HasGradient: Boolean;

Returns True if two colors are different at least in one of their red, green, blue or alpha components.


Copyright © 2000 - 2017 Yuriy Kotsarenko. Help files generated by PasDoc.