VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.Annotation.Formatters Namespace / AnnotationWangFormatter Class / Serialize(Stream,Object) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
Serialize(Stream,Object) Method (AnnotationWangFormatter)
In This Topic
Serializes an AnnotationDataCollection or AnnotationData object to the provided stream.
Syntax
'Declaration

Public Overrides Sub Serialize( _
ByVal serializationStream
The stream where the formatter puts the serialized data.
As System.IO.Stream, _
ByVal graph
The AnnotationDataCollection or AnnotationData object to serialize. All annotations of AnnotationDataCollection object are automatically serialized.
As System.Object _
)
public override void Serialize(
System.IO.Stream serializationStream,
System.Object graph
)

Parameters

serializationStream
The stream where the formatter puts the serialized data.
graph
The AnnotationDataCollection or AnnotationData object to serialize. All annotations of AnnotationDataCollection object are automatically serialized.
Exceptions
ExceptionDescription
Thrown if serializationStream or graph is null.
Thrown if formatter does not support serialization of provided type.
Requirements

Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also