Page 1 of 1

Magnification API

Posted: Tue May 19, 2020 12:44 pm
by BarryG
Has anyone played with the Windows Magnification API at all? No hits in these forums when I search for it. See here -> https://docs.microsoft.com/en-us/previo ... gapi-intro

Would love an API guru to maybe give a small PureBasic example, if they have time. There's some example C code in that link but it's way over my head. I note that it requires 64-bit Windows, too.

Magnification API

Posted: Fri May 29, 2020 5:58 am
by JHPJHP
Hi BarryG,

I’ve added a new example to my Windows Services & Other Stuff:
- \Other_Stuff\OtherStuff\WindowsMagnificationAPI.pb

I’ve kept the example original to help with future conversions; should be simple enough to replace some of the Windows functions with PureBasic-isms.

Example converted from MagnifierSample.cpp.

NB*: Included additional filters for grayscale and sepia.

Re: Magnification API

Posted: Fri May 29, 2020 11:52 am
by BarryG
Thank you, it works perfectly! You've got a lot of good code at your site. Thanks for your contributions.