fg_blendvb()Win32 DirectX Fastgraph/Light Prototype void fg_blendvb (void *foreground, void *background, int width, int height); Sub fg_blendvb (foreground() As Any, background() As Any, ByVal width As Long, ByVal height As Long) procedure fg_blendvb (var foreground, background; width, height : integer); Description The fg_blendvb() function computes an alpha-blended image from the specified foreground and background bitmaps using the current fg_opacity() setting. The resulting alpha-blended image is written to the active virtual buffer; the current graphics position defines the lower left corner of the blending region. 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. If background is NULL (nil^ for Delphi, ByVal 0 for Visual Basic, or BYVAL %NULL for PowerBASIC), fg_blendvb() gets the background pixels from the same area of the active virtual buffer where the blended pixels will be written. width is the width of each direct color bitmap in pixels. height is the height 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_blendvar(), fg_blendvbv(), fg_opacity()
|
 
copyright 2001 Ted Gruber Software, Inc.