ChartDirector 7.1 (.NET Edition)

ContourLayer.getZAtPixel


Usage

[C#]public double getZAtPixel(int x, int y);
[VB]Public Function getZAtPixel(x As Integer, y As Integer) As Double

Description

Gets the z value at the specify (x, y) pixel coordinate.

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

Arguments

ArgumentDefaultDescription
x(Mandatory)The x pixel coordinate.
y(Mandatory)The y pixel coordinate.

Return Value

The z value at the sepcified (x, y) pixel coordinate, or NoValue if the point lie outside the contour region.