The CalculateRotateAngle Method is available in LEADTOOLS Document and Medical Imaging toolkits.
Returns the rotate angle of an
AnnObject in degrees.
Syntax
Visual Basic (Declaration) | |
---|
Public Overridable Function CalculateRotateAngle() As Single |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As AnnObject
Dim value As Single
value = instance.CalculateRotateAngle() |
C# | |
---|
public virtual float CalculateRotateAngle() |
C++/CLI | |
---|
public:
virtual float CalculateRotateAngle(); |
Return Value
The rotate angle of the
AnnObject in degrees.
Example
This example displays the rotate angle of an AnnObject.
Visual Basic | Copy Code |
---|
Public Sub AnnObject_CalculateRotateAngle(ByVal obj As AnnObject)
Dim angle As Single = obj.CalculateRotateAngle()
Dim s As String = String.Format("The selected {0} has a rotate angle of {1}", obj.GetType().ToString(), angle)
MessageBox.Show(s)
End Sub |
C# | Copy Code |
---|
public void AnnObject_CalculateRotateAngle(AnnObject obj)
{
float angle = obj.CalculateRotateAngle();
string s = string.Format("The selected {0} has a rotate angle of {1}", obj.GetType().ToString(), angle);
MessageBox.Show(s);
} |
Remarks
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