fg_blend50()Win32 DirectX Fastgraph/Light Prototype int fg_blend50 (int foreground, int background); Function fg_blend50 (ByVal foreground As Long, ByVal background As Long) As Long function fg_blend50 (foreground, background : integer) : integer; Description The fg_blend50() function computes a 50% alpha-blended color value from the specified foreground and background colors. 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 50% 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_blend(), fg_blenddcb(), fg_blendvar(), fg_blendvb(), fg_blendvbv()
|
 
copyright 2001 Ted Gruber Software, Inc.