Converts the specified rectangle from one CoordinateType to another.
public virtual Rect ConvertRect(Leadtools.Controls.CoordinateType sourceType,Leadtools.Controls.CoordinateType destinationType,Rect rect)
Public Overridable Function ConvertRect( _ByVal sourceType As Leadtools.Controls.CoordinateType, _ByVal destinationType As Leadtools.Controls.CoordinateType, _ByVal rect As Rect _) As Rect
public virtual Rect ConvertRect(Leadtools.Controls.CoordinateType sourceType,Leadtools.Controls.CoordinateType destinationType,Rect rect)
- (CGRect)convertRect:(CGRect)rectsourceType:(LTCoordinateType)srcdestType:(LTCoordinateType)dst;macOS Only (flipped around Y axis)- (CGRect)convertRect_osx:(CGRect)rectsourceType:(LTCoordinateType)srcdestType:(LTCoordinateType)dst;
public RectF convertRect(CoordinateType sourceType,CoordinateType destType,RectF rect)
function Leadtools.Controls.ImageViewer.ConvertRect(sourceType ,destinationType ,rect)
sourceType
The source coordinate type.
destinationType
The destination coordinate type.
rect
The rectangle to be converted.
The converted rectangle, in the destination coordinate type.
Use this method to convert a rectangle 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.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
