Ink.Save Method ()
Saves the Ink object in InkSerializedFormat (ISF), by using the Default, and returns the binary data in a Byte array.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)
Syntax
'Declaration
Public Function Save As Byte()
'Usage
Dim instance As Ink
Dim returnValue As Byte()
returnValue = instance.Save
public byte[] Save ()
public:
array<unsigned char>^ Save ()
public byte[] Save ()
public function Save () : byte[]
Not applicable.
Return Value
The Byte array that contains the persisted ink.
Example
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);
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)
Platforms
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Version Information
.NET Framework
Supported in: 3.0
See Also
Reference
Ink Class
Ink Members
Microsoft.Ink Namespace
Ink.Load
PersistenceFormat
CompressionMode