简体   繁体   中英

Which Windows API capturing screen faster than Bitblt or any other Mirror Drivers?

am using bitblt API to capture window screen it taking approximately 30 to 40 Milliseconds but i want to make this in more faster way so is any other inbuilt API or suggest me best screen capture drivers.

Here is my code.

ret = BitBlt(m_pGDI->hDoubleBufferWorker,0,0,this->m_screenWidth,
            this->m_screenHeight,hDisplayDC,this->m_scrennOffsetX,this->m_scrennOffsetY,SRCCOPY|CAPTUREBLT);        
        if(!ret)
        {
            int err=    GetLastError();
            ErrorLogger::Log("Error : Desktop : Bitblt failed%d",err);      
        }

I found a solution for to capture desktop screen in faster way.

I use Direct3D11 it taking around 5 to 20 milliseconds for single frame it reduce 50% time consumption compare to BitBlt.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM