SAMPLE: VIEW Demonstrates Drawing Ink at a Slower RateLast reviewed: February 15, 1996Article ID: Q98681 |
The information in this article applies to:
SUMMARYThe VIEW sample is a Windows for Pen Computing sample that demonstrates how to:
MORE INFORMATIONView allows developers to experience how ink display is done, and provides one conversion algorithm that can be used to convert the raw ink into recognized values [see SYV, SYG, SYE, and SYC in the Microsoft Windows for Pen Computing "Programmer's Reference" in the Windows version 3.1 Software Development Kit (SDK) for more information on recognition results.] These values can then be converted and displayed as text on a device context (DC) in a TrueType font such that a close approximation of the raw ink string height can be mimicked by the font string itself. Finally, the View sample demonstrates through the use of a timer callback function, how to walk through the individual stroke points and draw them one by one. With a timer running, it is possible to slow down the speed at which the ink is redrawn, and thus to see approximately how the ink was drawn by the user. This is similar to how the Trainer application (available in the Windows for Pen Computing environment) does its slow drawing to demonstrate inking techniques. View was built and tested under Microsoft Windows version 3.1. The program requires PENWIN.DLL, which can be found in both Microsoft Windows for Pen Computing and the Microsoft Windows version 3.1 SDK. View also requires the TrueType Arial font.
|
Additional reference words: 1.0 softlib VIEW.EXE
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |