Click or drag to resize

WpfAnnotationCanvas.Save Method (Stream, WpfLayerAnnotation, IFormatter)

Saves the provided layer to a stream.

Namespace:  Atalasoft.Annotate.Wpf
Assembly:  Atalasoft.dotImage.Wpf (in Atalasoft.dotImage.Wpf.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public void Save(
	Stream stream,
	WpfLayerAnnotation layer,
	IFormatter formatter
)

Parameters

stream
Type: System.IO.Stream
The stream to which the data will be saved.
layer
Type: Atalasoft.Annotate.Wpf.WpfLayerAnnotation
The layer to save.
formatter
Type: System.Runtime.Serialization.IFormatter
The formatter used to save the annotations.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if any parameters passed in are null (Nothing in VB).
ArgumentExceptionThrown if the stream does not have write access.
See Also