question

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

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
10 |1000 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 ·

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 ·
10 |1000 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.

So how can I get the rgb data of magnifier window

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

·
10 |1000 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.