Error processing SSI file
LEADTOOLS JavaScript (Leadtools.Controls)

GetDestinationRectangle Method

Show in webframe
Source width
Source height
Initial destination rectangle
Controls how the source size is positioned and scaled inside the destination rectangle
Controls how the source size is aligned horizontally inside the destination rectangle
Controls how the source size is aligned vertically inside the destination rectangle
Utility method to adjust the given LeadRectD based on source size, size mode and alignment
Syntax
 function Leadtools.Controls.ImageViewer.getDestinationRectangle( 
   sourceWidth ,
   sourceHeight ,
   destinationRect ,
   sizeMode ,
   horizontalAlignment ,
   verticalAlignment 
)

Parameters

ParameterTypeDescription
sourceWidthdoubleSource width
sourceHeightdoubleSource height
destinationRectLeadRectDInitial destination rectangle
sizeModeControlSizeModeControls how the source size is positioned and scaled inside the destination rectangle
horizontalAlignmentControlAlignmentControls how the source size is aligned horizontally inside the destination rectangle
verticalAlignmentControlAlignmentControls how the source size is aligned vertically inside the destination rectangle

Return Value

TypeDescription
LeadRectD The new destination rectangle adjusted based on the source size, size mode and alignment.
See Also

Reference

ImageViewer Object
ImageViewer Members

Error processing SSI file