Error processing SSI file
LEADTOOLS JavaScript (Leadtools.Controls)

ConvertRect Method

Show in webframe
The reference item. This value can be null.
Original coordinates of rect.
Desired target coordinates.
The rectangle to convert.
Converts a LeadRectD from one coordinates to the other.
Syntax
 function Leadtools.Controls.ImageViewer.convertRect( 
   item ,
   fromType ,
   toType ,
   rect 
)

Parameters

ParameterTypeDescription
itemImageViewerItemThe reference item. This value can be null.
fromTypeImageViewerCoordinateTypeOriginal coordinates of rect.
toTypeImageViewerCoordinateTypeDesired target coordinates.
rectLeadRectDThe rectangle to convert.

Return Value

TypeDescription
LeadRectD The converted rectangle
Remarks

For information on the various conversion types, refer to ConvertPoints.

For more information refer to Image Viewer Layouts, Image Viewer Appearance, Image Viewer Items, Image Viewer Transformation, and Image Viewer Bounds and Transform.

Example

For an example, refer to ConvertPoint.

See Also

Reference

ImageViewer Object
ImageViewer Members

Error processing SSI file