ChartDirector 7.0 (Python Edition)

ContourLayer.getZAtPixel


Usage

getZAtPixel(x, 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.