Dundas Chart for Windows Forms
TransformPoints Method
See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > ChartArea Class : TransformPoints Method


points
An array of points of type Point3D.

Call this method to apply 3D transformations on an array of 3D points (must be done before calling GDI+ drawing methods).

Syntax

Visual Basic (Declaration)  
Public Sub TransformPoints( _
   ByVal points() As Point3D _
) 
Visual Basic (Usage) Copy Code
Dim instance As ChartArea
Dim points() As Point3D
 
instance.TransformPoints(points)
C#  
public void TransformPoints( 
   Point3D[] points
)

Parameters

points
An array of points of type Point3D.

Remarks

This method is used for custom drawing routines, and takes an array of 3D points with relative X, Y, and Z coordinates and then transforms those points so that they have relative 2-dimensional coordinates (i.e. the X and Y properties are changed to reflect the 3-dimensional view).

After calling this method get the absolute pixel coordinates of the new X and Y properties of each Point3D object (the  Z property of each Point3D object is disregarded) by calling the GetAbsolutePoint method of the ChartGraphics object. These absolute coordinates can then used for GDI+  drawing routines. For more information on custom drawing and 3D charts see the "Custom Drawing" section in the Working with 3D Charts topic.

The GetSeriesDepth and GetSeriesZPosition are useful when calculating relative Z positions, and the Axis.ValueToPosition method is useful for calculating relative X and Y coordinates for given axis values.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2009 All Rights Reserved.