3byte FM_AlphaBlend(
byte Alpha,
byte FG,
byte BG,
float AntiAliasFactor)
22 ColorFactor = (float)((((dword)Alpha * FG) + ((dword)(255 - Alpha) * BG)) >> 8) * AntiAliasFactor;
23 Color = (int)ColorFactor;
26 return (Color > 255) ? 255 : Color;
byte FM_AlphaBlend(byte Alpha, byte FG, byte BG, float AntiAliasFactor)