Ink.Save Method
Ink.Save Method |
Saves the Ink object in InkSerializedFormat (ISF), by using the Default compression mode, and returns the binary data in a Byte array.
Definition
Visual Basic .NET Public Function Save() As Byte() C# public byte[] Save(); Managed C++ public: Byte* Save() __gc[];
Return Value
System.Byte[]. Returns the Byte array that contains the persisted ink.
Examples
[C#]
This C# example saves the Ink object in the InkCollector object, theInkCollector, in a Byte array, theSavedInk. The example later restores the ink in a new Ink object, theNewInk.
byte [] theSavedInk = theInkCollector.Ink.Save(); // ... Ink theNewInk = new Ink(); theNewInk.Load(theSavedInk);
[Visual Basic .NET]
This Microsoft® Visual Basic® .NET example saves the Ink object in the InkCollector object, theInkCollector, in a Byte array, theSavedInk. The example later restores the ink in a new Ink object, theNewInk.
Dim theSavedInk () as Byte = _ theInkCollector.Ink.Save() '... Dim theNewInk As New Ink() theNewInk.Load(theSavedInk)
See Also