Newton Developer Technical Support Sample Code
InkTranslate, Ink/Stroke sample.
by J. Christopher Bell
Copyright  1995 by Apple Computer, Inc.  All rights reserved.

You may incorporate this sample code into your applications without
restriction.  This sample code has been provided "AS IS" and the
responsibility for its operation is 100% yours.  You are not permitted to
modify and redistribute the source as "DTS Sample Code." If you are going
to re-distribute the source, we require that you make it clear in the
source that the code was descended from Apple-provided sample code, but
that you've made changes.


This example shows how to use Newton 2.0 ink and stroke bundle APIs to
translate an "ink" structure in an edit view to points.

  Edit View ink:                             --> a points (x,y) structure
  (a undocced binary object in Newton 1.x)
  
  
Note that in the edit view, ink is clustered into paragraph children
containing stroke bundles, each of which could contain *several* strokes.
After the translation, the data is just grouped into a list of
point-arrays to be passed to MakePolygon().
