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 ...

Get Building Tablet PC Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.