ChartDirector 7.1 (C++ Edition)

ViewPortManager.getZoomXYRatio


Usage

double getZoomXYRatio();

Description

Gets the enforced aspect ratio of the viewport.

The ViewPortManager.setKeepAspectRatio can be used to keep the aspect ratio unchanged. This method gets that aspect ratio.

Arguments

None

Return Value

The enforced aspect ratio, or 0 if the aspect ratio is not enforced.