fg_blendvar()Win32 DirectX Fastgraph/Light Prototype void fg_blendvar (void *foreground, void *background, void *opacity, void *blended, int size); Sub fg_blendvar (foreground() As Any, background() As Any, opacity() As Any, blended() As Any, ByVal size As Long) procedure fg_blendvar (var foreground, background, opacity, blended; size : integer); Description The fg_blendvar() function computes an alpha-blended bitmap from the specified foreground and background bitmaps using the specified opacity bitmap. Parameters foreground is the name of the array containing the foreground direct color bitmap. background is the name of the array containing the background direct color bitmap. opacity is the name of the array containing the opacity values, represented as a 256-color bitmap. blended is the name of the array that will receive the resulting alpha blended direct color bitmap. It must be at least as large as the foreground and background arrays. size is the size of each direct color bitmap in pixels. Return value none Restrictions This function is meaningful only with direct color virtual buffers. See also fg_blend(), fg_blend50(), fg_blenddcb(), fg_blendvb(), fg_blendvbv() Examples
|
 
copyright 2001 Ted Gruber Software, Inc.