Full-Buffer Block Transfer

In the previous section, we showed how to use fg_vbcopy() to transfer the entire contents of one 320x240 virtual buffer to another 320x240 virtual buffer. Copying one virtual buffer to another is such a common operation that Fastgraph includes a special function specifically optimized for this purpose:

C/C++ and Delphi:

fg_copypage(hVB1,hVB2);

Visual Basic:

Call fg_copypage(hVB1, hVB2)

As you might guess, the two fg_copypage() parameters specify the source and destination virtual buffer handles. These two virtual buffers must be the same size and have the same color depth; if they aren't the same size, use fg_vbcopy().

<< Prev

Next >>

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.