Index   Commented   Search   About

Drawing Data

The following example uses the ICDraw function and the ICDrawStart, ICDrawStop, ICDrawFlush, and ICDrawEnd macros to draw data on the screen.

DWORD dwNumBuffers;

// Find out how many buffers need filling before drawing starts.

ICGetBuffersWanted(hIC, &dwNumBuffers);

for (dw = 0; dw < dwNumBuffers; dw++)

{

ICDraw(hIC, 0, lpFormat, lpData, cbData, dw); // fill the pipeline

// Point lpFormat and lpData to next format and buffer.

}

ICDrawStart(hIC); // starts the clock

dw = 0;

while (fPlaying)

{

ICDraw(hIC, 0, lpFormat, lpData, chData, dw); // fill more buffers

// Point lpFormat and lpData to next format and buffer,

// update dw.

}

ICDrawStop(hIC); // stops drawing and decompressing when done

ICDrawFlush(hIC); // flushes any existing buffers

ICDrawEnd(hIC); // ends decompression

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET

More Online Helps

Win32 Programmer's Reference (win32.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun