function CreateBitmask(Components: TColor32Components): TColor32; overload;

This function takes a set of TColor32Component and creates a TColor32. If a given component is present in the set, the result component will get the value 255; if not present the result component will be zero. The context of application is to prepare a Bitmask parameter for the routine ApplyBitmask. To construct bitmasks containing any number in range [0..255] per component, use Color32.


See Also

Color32, Color Types, ApplyBitmask