VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
In This Topic
VintaSoft Annotation .NET Plug-in: API changes in version 12.1
In This Topic

System.Runtime.Serialization.Formatters.Binary.BinaryFormatter class is deprecated in .NET 7

Microsoft deprecated System.Runtime.Serialization.Formatters.Binary.BinaryFormatter class starting from .NET 7.
The Vintasoft.Imaging.Annotation.Formatters.AnnotationVintasoftBinaryFormatter class for .NET 6 and earlier used System.Runtime.Serialization.Formatters.Binary.BinaryFormatter class for serialization of user types, which are marked by Serializable attribute (System.SerializableAttribute class).

If you have custom annotations, which use user types marked by Serializable attribute, and you need to serialize these annotations in binary format, you need to implement interface Vintasoft.Imaging.Annotation.Formatters.ICompatibleSerializable in annotation.

If you have saved binary packets with custom annotations, which use user types marked by Serializable attribute, you need to do the following steps:


API changes in Vintasoft.Imaging.Annotation.dll

Changed classes:

Vintasoft.Imaging.Annotation. AnnotationData
Added properties
public bool CanSelect { get ; set ; } Gets or sets a value indicating whether the annotation can be selected.


New interfaces:

public interface Vintasoft.Imaging.Annotation.Formatters. ICompatibleSerializable An interface that allows to serialize and deserialize objects, which support old versions of annotation packets.




API changes in Vintasoft.Imaging.Annotation.UI.dll

Changed classes:

Vintasoft.Imaging.Annotation.UI. AnnotationView
Added properties
public bool CanSelect { get ; set ; } Gets or sets a value indicating whether the annotation can be selected.




API changes in Vintasoft.Imaging.Annotation.Wpf.UI.dll

Changed classes:

Vintasoft.Imaging.Annotation.Wpf.UI. WpfAnnotationView
Added properties
public bool CanSelect { get ; set ; } Gets or sets a value indicating whether the annotation can be selected.