WpfAnnotationCanvasSave 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: 2026.2.0.0.42 (.NET 4.6.2, x86)
Syntaxpublic void Save(
Stream stream,
WpfLayerAnnotation layer,
IFormatter formatter
)
Public Sub Save (
stream As Stream,
layer As WpfLayerAnnotation,
formatter As IFormatter
)
Parameters
- stream
- Type: System.IOStream
The stream to which the data will be saved. - layer
- Type: Atalasoft.Annotate.WpfWpfLayerAnnotation
The layer to save. - formatter
- Type: System.Runtime.SerializationIFormatter
The formatter used to save the annotations.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | Thrown if any parameters passed in are null (Nothing in VB). |
| ArgumentException | Thrown if the stream does not have write access. |
See Also