Click or drag to resize

WangFormatter Class

The WangFormatter converts annotation data to and from WANG format.
Inheritance Hierarchy
SystemObject
  Atalasoft.Annotate.FormattersWangFormatter

Namespace:  Atalasoft.Annotate.Formatters
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public class WangFormatter : IFormatter

The WangFormatter type exposes the following members.

Constructors
  NameDescription
Public methodWangFormatter
Creates a new instance of WangFormatter.
Public methodWangFormatter(PointF)
Creates a new instance of WangFormatter specifying the viewer resolution.
Top
Properties
  NameDescription
Public propertyBinder
Gets or sets the SerializationBinder that performs type lookups during deserialization.
Public propertyContext
Gets or sets the StreamingContext used for serialization and deserialization.
Public propertyResolution
Gets or sets the document resolution used by the AnnotateViewer.
Public propertySurrogateSelector
Gets or sets the SurrogateSelector used by the current formatter.
Public propertyUseWangBoldLevels
Gets or sets a value indicating how the lfWeight property will be interpreted for a TextAnnotation. Default value is false, to preserve backwards compatibility, an lfWeight of 400 or greater will indicate bold text. Setting this to true will be consistent with the WANG specification, an lfWeight of 700 or greater will indicate bold text.
Top
Methods
  NameDescription
Public methodDeserialize
Deserializes WANG data into a LayerData object.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnDeserialize
Called when an annotation is being deserialized.
Public methodSerialize
Serializes annotations into WANG format.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodWriteUnsupportedAnnotation
Called when an AnnotationData object being serialized does not implement the IWangCompatible interface.
Protected methodWriteUnsupportedObject
Called when an unsupported object needs to be serialized.
Protected methodWriteWangAnnotation
Called to write a WANG compatible annotation to the serialization stream.
Top
Events
  NameDescription
Public eventDeserializeAnnotation
Raised when an annotation is being deserialized.
Top
See Also