question

JunPingLi-8972 avatar image
0 Votes"
JunPingLi-8972 asked JunPingLi-8972 commented

MagImageScalingCallback doesn't work in secondary monitor

Hi, I'm using Magnification API to capture screenshoot, and I have some problems.
When I set up my magnifier window rect same as Secondary Monitor rect (such (1920,0,3840,1080)) , I can't get rgb data from MagImageScalingCallback.
Actually , MagImageScalingCallback can work normally on the primary monitor which rect is (0,0,1920,1080).
I can't find any doc to introduce how MagImageScalingCallback working on.
Can anybody tell me how to get rgb data from Secondary Monitor with Magnification API?
ps: my magnifier host window is showed as hidden.

windows-hardware-code-storage
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

CymonKilmer-4330 avatar image
0 Votes"
CymonKilmer-4330 answered JunPingLi-8972 commented

From this documentation its noted that the MagImageScalingCallback was deprecated in Windows 7 and there is no replacement.

https://docs.microsoft.com/en-us/windows/win32/api/magnification/nc-magnification-magimagescalingcallback


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, i'm a new user of the` WGC `, and I have some doubts about using it:
1. When I start collecting, can I hide the yellow box or change the style?
2. When I use a demo of WGC, I sometimes find that the frame pool size is 0, and there is no screen data in it. In this case, how do I catch the exception?

0 Votes 0 ·
JunPingLi-8972 avatar image
0 Votes"
JunPingLi-8972 answered

Well, I wanna get the rgb data from magnifier window that show with SW_HIDE command. But I can't get data from this callback at secondary monitor

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Krishandevank-4129 avatar image
0 Votes"
Krishandevank-4129 answered

@JunPingLi-8972 Did you get any fix for this ? Only way I see is like you have to capture secondary screen as parts and stich it.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.