The Subtract Method is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.
Returns a
LogicalPoint that results from subtracting the width and height of a
LogicalSize structure from the X and Y coordinates of the
LogicalPoint structure, respectively.
Syntax
Example
This example subtracts the point structure by size structure (offset).
Visual Basic | Copy Code |
---|
'''This example subtracts two point structures.
Public Sub LogicalPoint_Subtract()
Dim sz As LogicalSize = New LogicalSize(2, 3, LogicalUnit.Centimeter)
Dim pt As LogicalPoint = New LogicalPoint(1.5F, 2f, LogicalUnit.Inch)
Dim s As String = String.Format("pt - sz = {0}", LogicalPoint.Subtract(pt, sz))
MessageBox.Show(s)
End Sub |
C# | Copy Code |
---|
///This example subtracts two point structures.
public void LogicalPoint_Subtract()
{
LogicalSize sz = new LogicalSize(2, 3, LogicalUnit.Centimeter);
LogicalPoint pt = new LogicalPoint(1.5F, 2f, LogicalUnit.Inch);
string s = string.Format("pt - sz = {0}", LogicalPoint.Subtract(pt, sz));
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