It is currently Tue Apr 13, 2021 1:40 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Magnification API
PostPosted: Tue May 19, 2020 12:44 pm 
Offline
Addict
Addict

Joined: Thu Apr 18, 2019 8:17 am
Posts: 1434
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/previous-versions/windows/desktop/magapi/magapi-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.


Top
 Profile  
Reply with quote  
 Post subject: Magnification API
PostPosted: Fri May 29, 2020 5:58 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1745
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.

_________________

STATUS: Comfortably Numb :: Downloads moved to My PureBasic Stuff; access key required.
_________________


Last edited by JHPJHP on Sun May 31, 2020 4:44 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Magnification API
PostPosted: Fri May 29, 2020 11:52 am 
Offline
Addict
Addict

Joined: Thu Apr 18, 2019 8:17 am
Posts: 1434
Thank you, it works perfectly! You've got a lot of good code at your site. Thanks for your contributions.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye