AnnotateSpaceConverter Class |
Namespace: Atalasoft.Annotate
The AnnotateSpaceConverter type exposes the following members.
Name | Description | |
---|---|---|
AnnotateSpaceConverter | Creates a new instance of AnnotateSpaceConverter specifying the IAnnotate
parent and AnnotationData objects that will be used for the conversion methods. |
Name | Description | |
---|---|---|
AnnotationSpaceToDocumentSpace(PointF) | Converts a point from annotation space to document space. | |
AnnotationSpaceToDocumentSpace(PointF) | Converts an array of points from annotation space to document space. | |
AnnotationSpaceToDocumentSpace(PointFCollection) | Returns a new PointFCollection converted from annotation space to document space. | |
AnnotationSpaceToDocumentSpace(AnnotationData, PointFCollection) | Returns a new PointFCollection converted from annotation space to document space. | |
AnnotationSpaceToDocumentSpace(AnnotationData, PointF) | Converts a point from annotation space to document space. | |
AnnotationSpaceToDocumentSpace(AnnotationData, PointF) | Converts a point from annotation space to document space. | |
AnnotationSpaceToViewSpace(PointF) | Converts from annotation space to view space. | |
AnnotationSpaceToViewSpace(PointF) | Converts an array of points from annotation space to view space. | |
AnnotationSpaceToViewSpace(IAnnotate, AnnotationData, PointF) | Converts from annotation space to view space. | |
AnnotationSpaceToViewSpace(IAnnotate, AnnotationData, PointF) | Converts from annotation space to view space. | |
Dispose | Releases resources used for conversion. | |
Dispose(Boolean) | Releases resources used by this object. | |
DocumentSpaceToAnnotationSpace(PointF) | Converts a point from document space to annotation space. | |
DocumentSpaceToAnnotationSpace(PointF) | Converts an array of points from document space to annotation space. | |
DocumentSpaceToAnnotationSpace(PointFCollection) | Returns a new PointFCollection with the points converted from document space to annotation
space. | |
DocumentSpaceToAnnotationSpace(AnnotationData, PointFCollection) | Returns a new PointFCollection with the points converted from document space to annotation
space. | |
DocumentSpaceToAnnotationSpace(AnnotationData, PointF) | Converts a point from document space to annotation space. | |
DocumentSpaceToAnnotationSpace(AnnotationData, PointF) | Converts an array of points from document space to annotation space. | |
DocumentSpaceToViewSpace(PointF) | Converts a point from document space to view space. | |
DocumentSpaceToViewSpace(PointF) | Converts an array of points from document space to view space. | |
DocumentSpaceToViewSpace(RectangleF) | Converts a rectangle from document space to view space. | |
DocumentSpaceToViewSpace(IAnnotate, PointF) | Converts a point from document space to view space. | |
DocumentSpaceToViewSpace(IAnnotate, RectangleF) | Converts a rectangle from document space to view space. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize |
Finalizes an instance of the AnnotateSpaceConverter class.
(Overrides ObjectFinalize.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
ViewSpaceToAnnotationSpace(PointF) | Converts a point from view space to annotation space. | |
ViewSpaceToAnnotationSpace(PointF) | Converts an array of PointF from view space to annotation space. | |
ViewSpaceToAnnotationSpace(IAnnotate, AnnotationData, PointF) | Converts a point from view space to annotation space. | |
ViewSpaceToDocumentSpace(PointF) | Converts a point from view space to document space. | |
ViewSpaceToDocumentSpace(PointF) | Converts an array of points from view space to document space. | |
ViewSpaceToDocumentSpace(RectangleF) | Converts a rectangle from view space to document space. | |
ViewSpaceToDocumentSpace(IAnnotate, PointF) | Converts a point from view space to document space. | |
ViewSpaceToDocumentSpace(IAnnotate, RectangleF) | Converts a rectangle from view space to document space. |
AnnotationUI annotation = this.Viewer.Annotations.ActiveAnnotation; AnnotateSpaceConverter converter = new AnnotateSpaceConverter(this.Viewer, annotation.Data); PointF asLocation = converter.AnnotationSpaceToDocumentSpace(annotation.Data.Location); PointF asLocation2 = converter.AnnotationSpaceToDocumentSpace(new PointF(annotation.Data.Location.X + annotation.Data.Size.Width, annotation.Data.Location.Y + annotation.Data.Size.Height)); converter.Dispose();
Dim annotation As AnnotationUI = Me.Viewer.Annotations.ActiveAnnotation Dim converter As AnnotateSpaceConverter = New AnnotateSpaceConverter(Me.Viewer,annotation.Data) Dim asLocation As PointF = converter.AnnotationSpaceToDocumentSpace(annotation.Data.Location) Dim asLocation2 As PointF = converter.AnnotationSpaceToDocumentSpace(New PointF(annotation.Data.Location.X + annotation.Data.Size.Width,annotation.Data.Location.Y + annotation.Data.Size.Height)) converter.Dispose()