[SerializableAttribute()]
[DataContractAttribute(Name="LeadSize")]
public struct LeadSize
typedef struct LeadSize
public final class LeadSize
implements java.io.Serializable
public:
[SerializableAttribute,
DataContractAttribute(Name=L"LeadSize")]
value class LeadSize sealed
class LeadSize:
Various parts of the LEADTOOLS toolkit require a structure that represents a size with width and height values. Although the .NET framework contains many structures that can be used for this such as System.Drawing.Size and System.Windows.Size they are tied to a specific platform (GDI+ and WPF in the previous case).
The LeadSize structure specifies a platform-independent representation of a size. If required, you can convert a LeadSize structure to a platform-independent size.
To convert a GDI+ System.Drawing.Size (source) to LeadSize, use the following code:
LeadSize dest = new LeadSize(source.Width, source.Height)
To convert a LeadSize (source) to GDI+ System.Drawing.Size, use the following code:
System.Drawing.Size dest = new System.Drawing.Size(source.Width, source.Height)
To convert a WPF System.Windows.Size (source) to LeadSize, use the following code:
LeadSize dest = new LeadSize((int)source.Width, (int)source.Height)
To convert a LeadSize (source) to WPF System.Windows.Size, use the following code:
System.Windows.Size dest = new System.Windows.Size(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