Visual Basic (Declaration) | |
---|---|
<SerializableAttribute()> Public Structure LeadPoint Inherits System.ValueType |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As LeadPoint |
C# | |
---|---|
[SerializableAttribute()] public struct LeadPoint : System.ValueType |
C++/CLI | |
---|---|
[SerializableAttribute()] public value class LeadPoint : public System.ValueType |
Various parts of the LEADTOOLS toolkit require a structure that represents a point with an 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 tried to a specific platform (GDI+ and WPF/Silverlight in the previous case).
The LeadPoint structure specifies a platform independent representation of a point. If required, you can convert LeadPoint to a platform independent point.
To convert a GDI+ System.Drawing.Point (source) to LeadPoint, use can use the following code:
LeadPoint dest = new LeadPoint(source.X, source.Y)
To convert a LeadPoint (source) to GDI+ System.Drawing.Point, use can 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 can 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 can use the following code:
System.Windows.Point dest = new System.Windows.Point(source.X, source.Y)
System.Object
System.ValueType
Leadtools.LeadPoint
Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only), Windows Phone 7