[SerializableAttribute()]
[DataContractAttribute(Name="LeadRect")]
public struct LeadRect
typedef struct LeadRect
public final class LeadRect
<SerializableAttribute(),
DataContractAttribute(Name:="LeadRect")>
Public Structure LeadRect
public:
[SerializableAttribute,
DataContractAttribute(Name=L"LeadRect")]
value class LeadRect sealed
Various parts of the LEADTOOLS toolkit require a structure that represents a rectangle with location and size values. Although the .NET framework contains many structures that can be used for this such as System.Drawing.Rectangle and System.Windows.Rect they are tied to a specific platform (GDI+ and WPF in the previous case).
The LeadRect structure specifies a platform independent representation of a rectangle. If required, you can convert LeadRect to a platform independent rectangle.
To convert a GDI+ System.Drawing.Rectangle (source) to LeadRect, use the following code:
LeadRect dest = new LeadRect(source.X, source.Y, source.Width, source.Height)
To convert a LeadRect (source) to GDI+ System.Drawing.Rectangle, use the following code:
System.Drawing.Rectangle dest = new System.Drawing.Rectangle(source.X, source.Y, source.Width, source.Height)
To convert a WPF System.Windows.Rect (source) to LeadRect, use the following code:
LeadRect dest = new LeadRect((int)source.X, (int)source.Y, (int)source.Width, (int)source.Height)
To convert a LeadRect (source) to WPF System.Windows.Rect, use the following code:
System.Windows.Rect dest = new System.Windows.Rect(source.X, source.Y, source.Width, source.Height)
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document