Leadtools.Controls Namespace > ImageViewer Object : GetDestinationRectangle Method |
function Leadtools.Controls.ImageViewer.getDestinationRectangle( sourceWidth , sourceHeight , destinationRect , sizeMode , horizontalAlignment , verticalAlignment )
Parameter | Type | Description |
---|---|---|
sourceWidth | double | Source width |
sourceHeight | double | Source height |
destinationRect | LeadRectD | Initial destination rectangle |
sizeMode | ControlSizeMode | Controls how the source size is positioned and scaled inside the destination rectangle |
horizontalAlignment | ControlAlignment | Controls how the source size is aligned horizontally inside the destination rectangle |
verticalAlignment | ControlAlignment | Controls how the source size is aligned vertically inside the destination rectangle |
Type | Description |
---|---|
LeadRectD | The new destination rectangle adjusted based on the source size, size mode and alignment. |