Determines the color modulation of an object. This is a color value which is multiplied (or added, according to BlitMode) with the object graphics. For more information see
SetClrModulation().
A return value of -1 means that no color modulation is done. This corresponds to
RGBa(255,255,255,255).
global func SetObjAlpha(byAlpha, obj)
{
var dwClrMod = obj->GetClrModulation();
if (!dwClrMod)
dwClrMod = byAlpha << 24;
else
dwClrMod = dwClrMod & RGB(255,255,255) | byAlpha << 24;
return(obj->SetClrModulation(dwClrMod));
}
Global function: only sets the alpha value of the color modulation of an object.