Utility method to adjust the given LeadRectD based on source size, size mode and alignment
public static LeadRectD GetDestinationRectangle(
int sourceWidth,
int sourceHeight,
LeadRectD destinationRect,
ControlSizeMode sizeMode,
ControlAlignment horizontalAlignment,
ControlAlignment verticalAlignment
)
Public Shared Function GetDestinationRectangle(
ByVal sourceWidth As Integer,
ByVal sourceHeight As Integer,
ByVal destinationRect As LeadRectD,
ByVal sizeMode As ControlSizeMode,
ByVal horizontalAlignment As ControlAlignment,
ByVal verticalAlignment As ControlAlignment
) As LeadRectD
public:
static LeadRectD^ GetDestinationRectangle(
int sourceWidth,
int sourceHeight,
LeadRectD^ 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.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET