WpfAnnotationCanvasSave Method (WpfLayerAnnotation, IFormatter) |
Serializes the provided layer into a byte array.
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 byte[] Save(
WpfLayerAnnotation layer,
IFormatter formatter
)
Public Function Save (
layer As WpfLayerAnnotation,
formatter As IFormatter
) As Byte()
Parameters
- layer
- Type: Atalasoft.Annotate.WpfWpfLayerAnnotation
The layer to serialize. - formatter
- Type: System.Runtime.SerializationIFormatter
The formatter used for serialization.
Return Value
Type:
ByteA byte array containing the serialized data.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | Thrown if any parameters passed in are null (Nothing in VB). |
See Also