smasherprog / screen_capture_lite

cross platform screen/window capturing library
MIT License
616 stars 156 forks source link

Windows 10 dpi aware ,record windows calcuration windows rect error. #81

Open baluoteliz opened 4 years ago

baluoteliz commented 4 years ago

1.dpi 125% other process call screen_capture_lite.dll GetwindowRect is origin size 130,17,1410,777 [1280,760] DwmGetWindowAttribute get bounds 163,21,1763,971 [1600,950]

2.dpi 125% self process call screen_capture_lite.lib GetWindowRect equal to DwmGetWindowAttribute

both two situation BitBlt(CaptureDC.DC, left, top, ret.right - ret.left, ret.bottom - ret.top, MonitorDC.DC, 0, 0, SRCCOPY here should ret.right - ret.left ; ret.bottom-ret.top

here is the source code. link below : https://github.com/AVSolution/record_capture_lite_dynamic if there is a problem, please point it out. Thanks.

smasherprog commented 4 years ago

Submit a Pull request and ill merge it into master

smasherprog commented 4 years ago

Do you happen to have a PR on this? I see theres alot of code in that repo and I like how you used the same design to capture audio/microphone data btw..

baluoteliz commented 4 years ago

Hi, Dear ye, but now I am busing, I had finished the capture of the speaker that uses the same design .the use of the microphone is on the road.

after while ill add resample, encode, mux, and so on.

So, Very Thanks to you. Scott😊🤝

-- Best Regards Cris Zhou

phone number:15721279956 mail:baluoteliz@gmail.com


From: Scott notifications@github.com Sent: Tuesday, June 16, 2020 5:55 To: smasherprog/screen_capture_lite screen_capture_lite@noreply.github.com Cc: cris meixi@live.cn; Author author@noreply.github.com Subject: Re: [smasherprog/screen_capture_lite] Windows 10 dpi aware ,record windows calcuration windows rect error. (#81)

Do you happen to have a PR on this? I see theres alot of code in that repo and I like how you used the same design to capture audio/microphone data btw..

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/smasherprog/screen_capture_lite/issues/81#issuecomment-644410616, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AF2QEUYDCEKFUVZYFIUCIKTRW2KFHANCNFSM4NZMQEAQ.

smasherprog commented 4 years ago

Can you create a pull request on the broken code so it can be fixed? If not i like to close these issues

baluoteliz commented 4 years ago

Yes I will do it

Get Outlook for iOShttps://aka.ms/o0ukef


From: Scott notifications@github.com Sent: Saturday, June 20, 2020 9:51:09 AM To: smasherprog/screen_capture_lite screen_capture_lite@noreply.github.com Cc: cris meixi@live.cn; Author author@noreply.github.com Subject: Re: [smasherprog/screen_capture_lite] Windows 10 dpi aware ,record windows calcuration windows rect error. (#81)

Can you create a pull request on the broken code so it can be fixed? If not i like to close these issues

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/smasherprog/screen_capture_lite/issues/81#issuecomment-646919272, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AF2QEUZM3UXVUHSQKTEARTDRXQIY3ANCNFSM4NZMQEAQ.