System.UIConsts.MakeColor

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function MakeColor(const C: TAlphaColor; const AOpacity: Single): TAlphaColor;
function MakeColor(R, G, B: Byte; A: Byte = $FF): TAlphaColor;

C++

extern DELPHI_PACKAGE System::Uitypes::TAlphaColor __fastcall MakeColor(const System::Uitypes::TAlphaColor C, const float AOpacity)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.UIConsts.pas
System.UIConsts.hpp
System.UIConsts System.UIConsts

Description

Returns an alpha color based on the given RGBA color space.

The MakeColor method returns an alpha color based on the given RGBA (specified through the R, G, B, and A parameters) color space.

There are two MakeColor overloaded methods.

The first MakeColor overloaded method lets you specify the alpha value as a Single value while the second MakeColor overloaded method assumes that the alpha value is maxed out (completely opaque color). However, you can still specify a Byte value in the range $00-$FF for the alpha.

See Also