Version

viewingTransform Method

Transforms points in array from a source rectangle to a destination rectangle.
Syntax
'Declaration
 
Public Shared Function viewingTransform( _
   ByVal source As Rectangle, _
   ByVal destination As Rectangle, _
   ByVal p1() As Point, _
   ByVal keepAspectRatio As Boolean _
) As Point()
public static Point[] viewingTransform( 
   Rectangle source,
   Rectangle destination,
   Point[] p1,
   bool keepAspectRatio
)

Parameters

source
The source rectangle.
destination
The destination rectangle.
p1
The array of points to transform.
keepAspectRatio
Determines whether or not to keep the original aspect ratio of the points. Passing true for this argument may result in 'stretching' of the resulting points which appears unnatural.

Return Value

The resulting array of points, having been transformed from p1.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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

See Also