Directshow开发的基本技巧[9]

[入库:2005年8月19日] [更新:2007年3月24日]

本文简介:选择自 aoosang 的 blog

        hrgn rgnclient = createrectrgnindirect(&rcclient);

        hrgn rgnvideo  = createrectrgnindirect(&g_rcdest); 

        combinergn(rgnclient, rgnclient, rgnvideo, rgn_diff); 

       

        // paint on window.

        hbrush hbr = getsyscolorbrush(color_btnface);

        fillrgn(hdc, rgnclient, hbr);

 

        // clean up.

        deleteobject(hbr);

        deleteobject(rgnclient);

        deleteobject(rgnvideo);

 

        // request the vmr to paint the video.

        hresult hr = g_pwc->repaintvideo(hwnd, hdc); 

    }

    else  // there is no video, so paint the whole client area.

    {

        fillrect(hdc, &rc2, (hbrush)(color_btnface + 1));

    }

本文关键:Directshow开发的基本技巧
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top