ChartDirector 7.1 (.NET Edition)

ContourLayer.getCrossSection


Usage

[C#]public double[] getCrossSection(int x0, int y0, int x1, int y1);
[VB]Public Function getCrossSection(x0 As Integer, y0 As Integer, x1 As Integer, y1 As Integer) As Double()

Description

Get the cross section between two points on a contour layer.

Note: This method should be used only after ChartDirector has output the chart image, or after BaseChart.layout has been called.

This method will return an array of numbers representing the z values of evenly spaced samples along a straight line joining the two end-points. The end-points are specified in pixel coordinates. If the input are data values, they can be converted to pixel coordinates using XYChart.getXCoor and XYChart.getYCoor.

Arguments

ArgumentDefaultDescription
x0(Mandatory)The x pixel coordinate of the first end-point.
y0(Mandatory)The y pixel coordinate of the first end-point.
x1(Mandatory)The x pixel coordinate of the second end-point.
y1(Mandatory)The y pixel coordinate of the second end-point.

Return Value

An array of numbers epresenting the z values of evenly spaced samples along a straight line joining the two end-points. The array can contain NoValue if