Specifying Foreground and Background Mix Attributes

Specify the current foreground mix value for all primitives using GpiSetMix. To learn the current foreground mix setting, use GpiQueryMix, which returns the current foreground mix setting for a character string primitive. GpiQueryAttrs can be used to determine the current foreground and background mix values for a single primitive type.

To specify a background mix value for all primitives, use GpiSetBackMix. GpiQueryBackMix returns the current background mix value for a character-string primitive. To specify the current foreground and background mix values for a single primitive type, call GpiSetAttrs.

Note: Not all devices support all of the background and foreground mix attributes described. When a device does not support the mix attribute chosen by an application, the default mix attribute is used; no error condition is raised. DevQueryCaps can be used to determine whether a mix attribute is supported on a specific device.


[Back: Leave-Alone Mix Attribute]
[Next: Color on Advanced Display Devices]