Showing posts from September, 2010

Krento award on Software Informer


Windows Magnification API .NET

The Magnification API provides assistive technology vendors with the means for developing screen magnification applications for Windows Vista and later operating systems.The API enables you to display a simple control that magnifies a specified portion of the display by a specified factor. Images as well as text are displayed.
Unfortunately, Microsoft provided only native C++ API functions without .NET equivalent, so I decided to make a simple .NET wrapper in C#.
The full C# source code is available for download:

The magnification class is based on native Windows API calls. Here is a small excerpt from the library sources:

using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace Karna.Magnification { internal static class NativeMethods { public const string WC_MAGNIFIER = "Magnifier"; [DllImport("user32.dll", Char…