ImageEn, unit hyieutils

TRGB2TRGBA


Declaration

function TRGB2TRGBA(rgb: longint; Transparency: Integer = 255): TRGBA; overload;
function TRGB2TRGBA(rgb: TRGB; Transparency: Integer = 255): TRGBA; overload;


Description

Converts TRGB and transparency values to TRGBA.


Example

var
  rgba: TRGBA;
Begin
  rgba := TRGB2TRGBA( rgb, 255 );
...
End;


See Also

TRGB2TRGBA
TRGB2TColor
TRGBA2TRGB
TColor2TRGBA