(Leadtools.Controls)

ConvertPoint Method

Show in webframe





The source coordinate type.
The destination coordinate type.
The point to be converted.
Converts the specified point from one CoordinateType to another.
Syntax
public virtual Point ConvertPoint( 
   CoordinateType sourceType,
   CoordinateType destinationType,
   Point point
)
Public Overridable Function ConvertPoint( _
   ByVal sourceType As CoordinateType, _
   ByVal destinationType As CoordinateType, _
   ByVal point As Point _
) As Point
public virtual Point ConvertPoint( 
   CoordinateType sourceType,
   CoordinateType destinationType,
   Point point
)
-(CGPoint)convertPoint:(CGPoint) point 
            sourceType:(LTImageViewerCoordinateType) source 
              destType:(LTImageViewerCoordinateType) dest;
            
OS X Only (flipped around Y axis)
-(CGPoint) convertPoint_osx:(CGPoint) point 
                 sourceType:(LTImageViewerCoordinateType) source 
                   destType:(LTImageViewerCoordinateType) dest;
            
public PointF convertPoint(CoordinateType sourceType,
                           CoordinateType destType,
                           PointF point)
            
 function Leadtools.Controls.ImageViewer.ConvertPoint( 
   sourceType ,
   destinationType ,
   point 
)

Parameters

sourceType
The source coordinate type.
destinationType
The destination coordinate type.
point
The point to be converted.

Return Value

The converted point, in the destination coordinate type.
Remarks

Use this method to convert a point from control to image coordinates or back. This method will simply multiply the point 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 point.

Example

For an example, refer to ImageViewerRubberBandInteractiveMode.

Requirements

Target Platforms

See Also

Reference

ImageViewer Class
ImageViewer Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.