SAMPLE: VIEW Demonstrates Drawing Ink at a Slower Rate

Last reviewed: February 15, 1996
Article ID: Q98681
The information in this article applies to:
  • Microsoft Windows for Pen Computing version 1.0

SUMMARY

The VIEW sample is a Windows for Pen Computing sample that demonstrates how to:

  • Display ink via RedisplayPenData()
  • Display the "best guess" in text from the Recognizer
  • Use TrueType fonts to mimic the same height of the raw ink text
  • Display how to parse through the individual ink data points and do a "slow draw" of the ink, much like the Trainer application does.

Download VIEW.EXE, a self-extracting file, from the Microsoft Software Library (MSL) on the following services:
  • Microsoft Download Service (MSDL)

          Dial (206) 936-6735 to connect to MSDL
          Download VIEW.EXE (size: 30020 bytes) 
    
  • Internet (anonymous FTP)

          ftp ftp.microsoft.com
          Change to the \SOFTLIB\MSLFILES directory
          Get VIEW.EXE (size: 30020 bytes) 
    

MORE INFORMATION

View 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
KBCategory: kbprg kbfile
KBSubcategory: WpenInk


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 15, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.