Jump to content

_WinAPI_MarkScreenRegionAndCapture 0.92 build 2017-01-22


UEZ
 Share

Recommended Posts

I used additionally the $CAPTUREBLT value for the _WinAPI_BitBlt's last parameter ($iROP).

Quote

$CAPTUREBLT - Includes any window that are layered on top of your window in the resulting image

That saved me some headaches... ;)

 

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

Sorry that I missed your post.  I had been working on this reply:

My quick assessment is that it took adding a single flag that has the following definition:

CaptureBLT.PNG

No need to reply if that's the whole deal.

Thanks for the change!

 

Edited by qwert
Link to comment
Share on other sites

  • 3 months later...

Excellent work, @UEZ. This has helped me a lot. You don't by any chance know of a function that does the same thing as this function (returns a GDI bitmap handle) but takes coordinates as input parameters? More specifically; I'm trying to find a function like _WinAPI_MarkScreenRegionAndCapture, except that I can call it programmatically like  _ScreenCapture_Capture (x,y,width,height) and have it return a bitmap that includes layered windows, and letting me capture the areas of different monitors with different font scaling, without problems.

Btw, this is the first example that I've found where screen capturing different applications, across multiple screens with different font scaling/DPI ratio, worked without errors.

Link to comment
Share on other sites

@DHL I can extend the function to accept also manual coordinates. I will post an update when it's done.

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

@DHL I've updated the code. Please test and reply if it works properly.

I've only tested it on my notebook yet.

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

Thank you so much, @UEZ. I've tested the updated function, with manual capturing activated, and everything works as expected. Awesome stuff.

Did my testing on Windows 10 Pro with two monitors having native resolutions of 2880x1800 (200% font scaling) and 2560x1440 (100% font scaling).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...