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




viewPerspective
Destination view perspective to which the rectangle should be translated.
rc
The rectangle to translate.
Translates a rectangle from this RasterImage view perspective to the specified view perspective.

Syntax

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

Parameters

viewPerspective
Destination view perspective to which the rectangle should be translated.
rc
The rectangle to translate.

Return Value

The translated rectangle.

Example

This example finds out where the selected rectangle of the image would be in a TopLeft ViewPerspective.

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