function Leadtools.Controls.ImageViewer.convertRect( sourceType , destinationType , rect )
!MISSING Scrap '_RTJavaScript_Method_SYNTAX'!
Parameter | Type | Description |
---|---|---|
sourceType | CoordinateType | The source coordinate type. |
destinationType | CoordinateType | The destination coordinate type. |
rect | LeadRectD | The rectangle to be converted. |
Type | Description |
---|---|
LeadRectD | The converted rectangle, in the destination coordinate type. |
Use this method to convert a rect value from control to image coordinates or back. This method will simply multiply the rectangle value by the transformation matrix (Transform) when converting from image to control coordinates and by the inverse of this matrix when converting from control to image coordinate.
If sourceType has the same value as destinationType, then this method will return a value equal to rect.
For an example, refer to ImageViewerRubberBandInteractiveMode.