How do I get the strokes from the pen?

Question
I am using the Anoto Network SDK and trying to get a pen stroke with Anotopen4.penstroke.X and I expect an array of objects (return type is a single object). How do I get the strokes from the pen?

Answer
You need to typecast the object returned to an array:

  • System.Array x = (System.Array)Anotopen4.penstroke.x;
  • System.Array y = (System.Array)Anotopen4.penstroke.y;

Applies To
Network SDK

Keywords
synchronize

Still need help? Contact Us Contact Us