Home > Forum > Window capture mode cannot retrieve all screens of this window handle

Window capture mode cannot retrieve all screens of this window handle

Jul 15 (21 days ago)
test wrote
The window capture mode cannot capture the entire screen of this window handle and can only capture a portion of the screen.

The debug log is as follows:
Filter name: Sample Grabber
Filter CLSID: {c1f400a0-3f08-11d3-9f0b-006008039e37}
Pin 0 - Input - Input
Connected to: Color Space Converter, XForm Out
Connection media type: 640x384 RGB, 24 bit, Frame rate: 30.00
Pin 1 - Output - Output
Connected to: Video Sample Grabber, Input
Connection media type: 640x384 RGB, 24 bit, Frame rate: 30.00

The program is as follows:
ScreenCaptureSourceSettings sourceSettings = new ScreenCaptureSourceSettings
{
FullScreen = false,
WindowHandle = windowHandle,
FrameRate = VideoFrameRate.FPS_30,
GrabMouseCursor = true,
Mode = ScreenCaptureMode.Window
};


Problem: The window size is 841x529, and the logging program can only capture a range of 640x384
Reply
8 Answers
Jul 15 (21 days ago)
Roman Miniailov agent wrote
Jul 16 (20 days ago)
test wrote
This sample cannot solve my problem.

If it is a DPI issue, how to use this SDK to solve it.
Jul 16 (20 days ago)
Roman Miniailov agent wrote
Do you have custom DPI like 150%? Or it’s default 100%?
Jul 16 (20 days ago)
test wrote
The system is configured with 125%, setting it back to 100% will solve the problem
Jul 17 (20 days ago)
Roman Miniailov agent wrote
Perfect, that means my suggestion was clear. Please give us a few days to resolve the problem.
Jul 19 (18 days ago)
Roman Miniailov agent wrote
Could you check this sample - https://github.com/visioforge/.Net-SDK-s-samples/tree/master/Video%20Capture%20SDK/WPF/CSharp/Screen_Capture ?

Please tell me also used .Net version. This issue can be caused by DPI-aware app settings or something like it. I have no problems in .Net 8 and 9.
Jul 20 (16 days ago)
test wrote
What I am using is Net 8 and updated SDK to version 2025.7.8, if the operating system DPI is not set to 100%, the problem cannot be solved
Jul 20 (16 days ago)
Roman Miniailov agent wrote
And you have the problem with the sample above?