ImageEn, unit hyieutils

IEApplyAlphaToColor


Declaration

function IEApplyAlphaToColor(Color: TColor; Alpha: Integer): TColor;  overload;
function IEApplyAlphaToColor(rgb: TRGB; Alpha: Integer): TRGB;  overload;


Description

Applies Alpha (0=fully transparent, 255=fully visible) to the specified color.


Examples

Color := IEApplyAlphaToColor( clRed, 255 ); // Returns Pure Red
Color := IEApplyAlphaToColor( clRed, 175 ); // Returns Dark Pink
Color := IEApplyAlphaToColor( clRed, 50 );  // Returns Pale Pink
Color := IEApplyAlphaToColor( clRed, 0 );   // Returns White