fg_blend()Win32 DirectX Fastgraph/Light Prototype int fg_blend (int foreground, int background); Function fg_blend (ByVal foreground As Long, ByVal background As Long) As Long function fg_blend (foreground, background : integer) : integer; Description The fg_blend() function computes an alpha-blended color value from the specified foreground and background colors using the current fg_opacity() setting. Parameters foreground is the foreground color value. For high color virtual buffers, foreground is encoded using the 5/6/5 or 5/5/5 RGB color scheme. For true color virtual buffers, foreground is encoded as four 8-bit color components (xRGB). background is the background color value, encoded the same way as the foreground color. Return value The alpha-blended color value, encoded the same way as the foreground and background colors. Restrictions This function is meaningful only with direct color virtual buffers. See also fg_blend50(), fg_blenddcb(), fg_blendvar(), fg_blendvb(), fg_blendvbv(), fg_opacity()
|
 
copyright 2001 Ted Gruber Software, Inc.