AnnotationControllerLoad Method (Stream, LayerAnnotation, IFormatter) |
Loads annotation data from a stream using the formatter and adds the annotations to the provided layer.
Namespace:
Atalasoft.Annotate.UI
Assembly:
Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 2026.2.0.0.42 (.NET 4.6.2, x86)
Syntaxpublic void Load(
Stream stream,
LayerAnnotation layer,
IFormatter formatter
)
Public Sub Load (
stream As Stream,
layer As LayerAnnotation,
formatter As IFormatter
)
Parameters
- stream
- Type: System.IOStream
A stream containing the annotation data. - layer
- Type: Atalasoft.Annotate.UILayerAnnotation
A LayerAnnotation where the annotations will be added. - formatter
- Type: System.Runtime.SerializationIFormatter
An IFormatter used to deserialize the annotation data.
Remarks We strongly recommend do not use standard formatters to load annotations from untrusted sources.
You can use one of the following formatters that have passed Veracode scanning:
Alternatively, custom secure formatter can be created.
See Also