Show: Delphi C++
Display Preferences

System.UIConsts.UnpremultiplyAlpha

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function UnpremultiplyAlpha(const C: TAlphaColor): TAlphaColor;

C++

extern DELPHI_PACKAGE System::Uitypes::TAlphaColor __fastcall UnpremultiplyAlpha(const System::Uitypes::TAlphaColor C);

Properties

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

Description

Divides the given alpha color by its contained alpha value.

The UnpremultiplyAlpha method is used to divide each of the three RGB components (that is, Red, Green, and Blue) of the color given through the C parameter, by its contained alpha value.

UnpremultiplyAlpha is the opposite of the PremultiplyAlpha method.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance