LEADTOOLS Annotations (Leadtools.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
GetLogicalAnnPoint Method
See Also 
Leadtools.Annotations Namespace > AnnDesigner Class : GetLogicalAnnPoint Method



x
The X position to be converted.
y
The Y position to be converted.
unit
The unit that will be used in converting x and y values to AnnPoint.

The GetLogicalAnnPoint Method is available in LEADTOOLS Document and Medical Imaging toolkits.

x
The X position to be converted.
y
The Y position to be converted.
unit
The unit that will be used in converting x and y values to AnnPoint.
Gets the logical AnnPoint for the specified x, y and unit for this designer.

Syntax

Visual Basic (Declaration) 
Protected Function GetLogicalAnnPoint( _
   ByVal x As Integer, _
   ByVal y As Integer, _
   ByVal unit As AnnUnit _
) As AnnPoint
Visual Basic (Usage)Copy Code
Dim instance As AnnDesigner
Dim x As Integer
Dim y As Integer
Dim unit As AnnUnit
Dim value As AnnPoint
 
value = instance.GetLogicalAnnPoint(x, y, unit)
C# 
protected AnnPoint GetLogicalAnnPoint( 
   int x,
   int y,
   AnnUnit unit
)
C++/CLI 
protected:
AnnPoint GetLogicalAnnPoint( 
   int x,
   int y,
   AnnUnit unit
) 

Parameters

x
The X position to be converted.
y
The Y position to be converted.
unit
The unit that will be used in converting x and y values to AnnPoint.

Return Value

The AnnPoint which contains the converted x and y values using the specified unit for this designer.

Example

For more information and an example, refer to the Implement User Defined Objects with LEADTOOLS Annotations

Remarks

This is a helper method that can be used by derived classes to convert a physical point (obtained usually through the mouse events) to a logical point on the current AnnDesigner.Container object.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features