LEADTOOLS (Leadtools assembly)
LEAD Technologies, Inc

LeadPoint Structure






Members 
Stores two integer numbers that represent the coordinates of a point (X and Y). .NET support Silverlight support
Object Model
LeadPoint StructureLeadPoint Structure
Syntax
[SerializableAttribute()]
public struct LeadPoint : System.ValueType 
'Declaration
 
<SerializableAttribute()>
Public Structure LeadPoint 
   Inherits System.ValueType
'Usage
 
Dim instance As LeadPoint
[SerializableAttribute()]
public class LeadPoint
JAVASCRIPT_NOSTRUCTS
[SerializableAttribute()]
public value class LeadPoint : public System.ValueType 
Remarks

Various parts of the LEADTOOLS toolkit require a structure that represents a point with X and Y values. Although the .NET framework contains many structures that can be used for this such as System.Drawing.Point and System.Windows.Point, they are tied to specific platforms (GDI+ and WPF/Silverlight in the previous case).

The LeadPoint structure specifies a platform-independent representation of a point. If required, you can convert a LeadPoint structure to a platform-independent point.

To convert a GDI+ System.Drawing.Point (source) to LeadPoint, use the following code:

LeadPoint dest = new LeadPoint(source.X, source.Y)

To convert a LeadPoint (source) to GDI+ System.Drawing.Point, use the following code:

System.Drawing.Point dest = new System.Drawing.Point(source.X, source.Y)

To convert a WPF System.Windows.Point (source) to LeadPoint, use the following code:

LeadPoint dest = new LeadPoint((int)source.X, (int)source.Y)

To convert a LeadPoint (source) to WPF System.Windows.Point, use the following code:

System.Windows.Point dest = new System.Windows.Point(source.X, source.Y)

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

LeadPoint Members
Leadtools Namespace

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.