[與此頁面相關聯的功能,影片壓縮管理員是舊版功能。 Microsoft強烈建議新程序代碼不使用此功能。]
下列範例顯示初始化順序,指示解壓縮程序繪製全螢幕。 它會使用 ICDrawBegin 和 ICDrawEnd 巨集。
// Assume lpbiIn has the input format, dwRate has the data rate.
if (ICDrawBegin(hIC, ICDRAW_QUERY | ICDRAW_FULLSCREEN, NULL, NULL,
NULL, 0, 0, 0, 0, lpbiIn, 0, 0, 0, 0, dwRate,
dwScale) == ICERR_OK)
{
// Decompressor supports this drawing so set up to draw.
ICDrawBegin(hIC, ICDRAW_FULLSCREEN, hPal, NULL, NULL, 0, 0, 0,
0, lpbiIn, 0, 0, lbpi->biWidth, lpbi->biHeight, dwRate,
dwScale);
.
. // Start decompressing and drawing frames.
.
// Drawing done. Terminate procedure.
ICDrawEnd(hIC);
}
else
{
// Use another renderer to draw data on the screen;
// ICDraw does not support the format.
}