public virtual Rect ConvertRect( CoordinateType sourceType, CoordinateType destinationType, Rect rect )
function Leadtools.Controls.ImageViewer.ConvertRect( sourceType , destinationType , rect )
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.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2