# GetClrModulation

Objects
Display
4.9.5.0 CE4.9.6.0 CR
int
int overlay_id If specified, the color modulation of the overlay is returned instead. The overlay must be set using SetGraphics first. From CR.
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 & 16777215 | byAlpha<<24; return(obj->SetClrModulation(dwClrMod)); }
Global function: only sets the alpha value of the color modulation of an object.
RGB
RGBa
SetGamma
SetClrModulation
GetColor
Sven2
2004-02