ChartDirector 7.1 (C++ Edition)

ContourLayer.getZAtPixel


Usage

double getZAtPixel(int x, int y);

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.