Files
docs-desktop/dotnet-desktop-guide/framework/wpf/advanced/storing-ink.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* Reset branch for WPF changes

* Convert BMP to PNG; fix link-out-of-scope err

* Add snippets for WPF... 6794 files!!!!

* Add missing snippets

* update file updated between migration

* Fix paths to include

* update breadcrumb and toc

* fix index links

* fix index links

* fix index links

* fix markdown
2020-09-04 09:46:28 -07:00

1.7 KiB

title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
title ms.date dev_langs helpviewer_keywords ms.assetid
Storing Ink 03/30/2017
csharp
vb
ISF (Ink Serialized Format)
storing ink [WPF]
ink [WPF], storing
retrieving ink [WPF]
Ink Serialized Format (ISF)
a3f6d16b-d682-4680-9965-907332b4d2b8

Storing Ink

The xref:System.Windows.Ink.StrokeCollection.Save%2A methods provide support for storing ink as Ink Serialized Format (ISF). Constructors for the xref:System.Windows.Ink.StrokeCollection class provide support for reading ink data.

Ink Storage and Retrieval

This section discusses how to store and retrieve ink in the [!INCLUDETLA2#tla_winclient] platform.

The following example implements a button-click event handler that presents the user with a File Save dialog box and saves the ink from an xref:System.Windows.Controls.InkCanvas out to a file.

[!code-csharpDigitalInkTopics#12] [!code-vbDigitalInkTopics#12]

The following example implements a button-click event handler that presents the user with a File Open dialog box and reads ink from the file into an xref:System.Windows.Controls.InkCanvas element.

[!code-csharpDigitalInkTopics#13] [!code-vbDigitalInkTopics#13]

See also