O'Reilly logo

Building Tablet PC Applications by Philip Su, Rob Jarrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Serialization, the Clipboard, and Drag and Drop

All the cool functionality that we’ve been performing on ink won’t do the user much good if he or she can’t save or load data or have it interoperate with other applications via the clipboard or drag and drop. In this final section on the Ink Data Management API, we’ll take a look at the platform’s support for serialization, clipboard, and drag and drop functionality.

Serialization

Ink data is always saved at the Ink object level, and it’s accomplished with the Ink class’s Save method:

byte[] Ink.Save()
byte[] Ink.Save(PersistenceFormat p)
byte[] Ink.Save(PersistenceFormat p, CompressionMode c)

This method produces a byte array in one of several formats. By default, the Save method will output the data ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required