Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
PointFromImage Method
See Also 
Leadtools Namespace > RasterImage Class : PointFromImage Method




viewPerspective
Destination view perspective to which the point should be translated.
pt
The point to translate.
Translates a point (x,y) from this RasterImage view perspective to the specified view perspective.

Syntax

Visual Basic (Declaration) 
Public Function PointFromImage( _
   ByVal viewPerspective As RasterViewPerspective, _
   ByVal pt As Point _
) As Point
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim viewPerspective As RasterViewPerspective
Dim pt As Point
Dim value As Point
 
value = instance.PointFromImage(viewPerspective, pt)
C# 
public Point PointFromImage( 
   RasterViewPerspective viewPerspective,
   Point pt
)
Managed Extensions for C++ 
public: Point PointFromImage( 
   RasterViewPerspective viewPerspective,
   Point pt
) 
C++/CLI 
public:
Point PointFromImage( 
   RasterViewPerspective viewPerspective,
   Point pt
) 

Parameters

viewPerspective
Destination view perspective to which the point should be translated.
pt
The point to translate.

Return Value

The translated point.

Example

This example finds out where the origin of the image would be. Then it converts a known point to bitmap coordinates.

Remarks

For more information, refer to Accounting for View Perspective.

For more information, refer to Changing Image Coordinates.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also