fg_aviframe()

Win32 DirectX Fastgraph/Light

Prototype

int fg_aviframe (void *context, void *bitmap);

Function fg_aviframe (context() As Any, bitmap() As Any) As Long

function fg_aviframe (var context, bitmap) : integer;

Description

The fg_aviframe() function writes one frame to an AVI file previously opened with fg_avimake().

Parameters

context is the name of a 24-byte buffer containing the AVI file context descriptor.

bitmap is a bitmap containing the AVI frame data. The bitmap width and height must be the same as specified in the fg_avimake() call for this context descriptor. If creating a 256-color AVI, bitmap must be a 256-color bitmap. If creating a high color or true color AVI, bitmap must be a 24-bit direct color bitmap.

Return value

0 = Frame written successfully

-1 = Error writing the frame

Restrictions

none

See also

fg_avimake(), fg_transdcb()

Examples

AVImake

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.