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