Converts an axis value to an absolute coordinate along an axis. Measured in pixels.
This function converts an axis value to pixel position. If an axis has logarithmic scale, value is converted to a linear scale.
Visual Basic (Declaration) | |
---|---|
Public Function ValueToPixelPosition( _ ByVal axisValue As Double _ ) As Double |
Visual Basic (Usage) | Copy Code |
---|---|
|
Parameters
- axisValue
Return Value
The axis value that corresponds to the specified relative position along the axis.Pixel position.
This method returns an absolute pixel position for a given axis value. The returned position, measured in pixels, has its origin at: the left of the chart picture for a horizontal axis; or at the top border of the chart picture for a vertical axis.
For more information concerning the chart's coordinate system see the Chart Coordinate System topic.
If the axis scale is logarithmic then the value is converted so that it uses a linear scale.
This method is useful when performing custom drawing for 2D charts using GDI+, since GDI+ uses absolute pixel coordinates. Note that this method should not be used when performing custom drawing with 3D charts, since X and Y coordinates for GDI+ methods must be obtained from transformed 3D points. For more information on custom drawing for 3D charts see the Working with 3D Charts topic.
This method only works in paint events.
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