System.UIConsts.UnpremultiplyAlpha
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.