I wrote code to capture screen (1024 * 786 resolution) using both GDI and DirectX, but I am doing a performance test, both GetDIBits (GDI) and GetFrontBufferdata(DirectX) taking more time ~600ms and also CPU utilization is around 17%. I am doubt about whether APIs are too slow or it's wrong in my code. Please suggest me if APIs are slow, how to improve performance of screen capture screen with.
Also is it possible to capture screen data using DirectX directly in YUV format.
Awaiting your reply.....Thanks in advance...
Code block tail removed, "Ignore HTML..." option disabled - OriginalGriff[/edit]