The SaveOriginalLocation Method is available in LEADTOOLS Document and Medical Imaging toolkits.
Saves location information for an
AnnObject.
Syntax
Visual Basic (Declaration) | |
---|
Public Overridable Sub SaveOriginalLocation() |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As AnnObject
instance.SaveOriginalLocation() |
C# | |
---|
public virtual void SaveOriginalLocation() |
C++/CLI | |
---|
public:
virtual void SaveOriginalLocation(); |
Example
This example shows the use of AnnObject.SaveOriginalLocation and AnnObject.RestoreOriginalLocation.
Visual Basic | Copy Code |
---|
Public Sub AnnObject_SaveOriginalLocation(ByVal obj As AnnObject)
' Save the original location
obj.SaveOriginalLocation()
' Make some changes
' i.e. shift to right 100 pixels
obj.Translate(100, 0)
' Restore original location
' Comment out the line below, to see the object shifts
' Leave the line below to see the object reverts to original location
obj.RestoreOriginalLocation()
End Sub |
C# | Copy Code |
---|
public void AnnObject_SaveOriginalLocation(AnnObject obj)
{
// Save the original location
obj.SaveOriginalLocation();
// Make some changes
// i.e. shift to right 100 pixels
obj.Translate(100, 0);
// Restore original location
// Comment out the line below, to see the object shifts
// Leave the line below to see the object reverts to original location
obj.RestoreOriginalLocation();
} |
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