/MagnifyDemo

Screen Magnification API Demo

Primary LanguageVisual Basic 6.0MIT LicenseMIT

MagnifyDemo

Screen Magnification API Demo

image

This is a quick port of the Windows SDK example for the Magnification API.

UPDATE: Version 1.1 adds undocumented smoothing functionality. There's a new useSmoothing setting at the top of the mMagnifier.bas module.

Warning

The useSmoothing setting might not work in the VB6 IDE. It was crashing, every time, but when I came back later to debug properly, I could no longer reproduce the crash. However it always worked in compiled VB6 exes and twinBASIC IDE.

There's two versions:

  1. The original twinBASIC version, made using WinDevLib, so all APIs/UDTs/etc were already defined.

  2. A backported VB6 version, which uses local copies of the defs. It's still 64bit compatible and can readily be imported to tB and compiled for either 32 or 64 bit.

At the top of the code you'll find options for the zoom factor (default 2.0) and whether to invert colors (default false).

Note

MSDN documentation says the Magnification API is not supported under WOW64; but at least for the basic functionality in this project, it works without issue in both VB6 and tB 32bit on my 64bit Win10. It's recommended you use the twinBASIC version in 64bit mode for 64bit Windows just in case this isn't true in all versions or you want to expand functionality.