Takes a PointF object and converts its relative coordinates to absolute coordinates. Useful for custom drawing routines.
Converts Relative Coordinates of Point to Absolute coordinates
Visual Basic (Declaration) | |
---|---|
Public Function GetAbsolutePoint( _ ByVal relative As PointF _ ) As PointF |
Visual Basic (Usage) | Copy Code |
---|---|
|
Parameters
- relative
- A PointF structure.
Relative position in %
Return Value
A PointF object that uses absolute coordinates.
Absolute position
Returns a PointF object that utilizes absolute coordinates. Custom drawing, accomplished using GDI+, always uses absolute pixel coordinates.
Note that these absolute coordinates are always for the entire chart image.
This method could be used in conjunction with the GetPositionFromAxis method to draw custom items at a particular point in the chart image.
See the Chart Coordinate System topic for a detailed explanation concerning the Chart's coordinate system.
For an example of this method see the Custom Drawing Using the Paint Events topic (custom drawing for a 2D chart). To see this method used for 3D charts see the "Custom Drawing" section in the Working with 3D Charts topic.
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