Utility method to adjust the given LeadRect based on source size, size mode and alignment
public static LeadRect GetDestinationRectangle(
int sourceWidth,
int sourceHeight,
LeadRect destinationRect,
ControlSizeMode sizeMode,
ControlAlignment horizontalAlignment,
ControlAlignment verticalAlignment
)
Public Shared Function GetDestinationRectangle(
ByVal sourceWidth As Integer,
ByVal sourceHeight As Integer,
ByVal destinationRect As LeadRect,
ByVal sizeMode As ControlSizeMode,
ByVal horizontalAlignment As ControlAlignment,
ByVal verticalAlignment As ControlAlignment
) As LeadRect
public:
static LeadRect^ GetDestinationRectangle(
int sourceWidth,
int sourceHeight,
LeadRect^ destinationRect,
ControlSizeMode^ sizeMode,
ControlAlignment^ horizontalAlignment,
ControlAlignment^ verticalAlignment
)
sourceWidth
Source width
sourceHeight
Source height
destinationRect
Initial destination rectangle
sizeMode
Controls how the source size is positioned and scaled inside the destination rectangle
horizontalAlignment
Controls how the source size is aligned horizontally inside the destination rectangle
verticalAlignment
Controls how the source size is aligned vertically inside the destination rectangle
The new destination rectangle adjusted based on the source size, size mode and alignment.
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