ChartDirector 7.1 (C++ Edition)

ViewPortManager.setKeepAspectRatio


Usage

void setKeepAspectRatio(bool b);

Description

Keeps the current viewport aspect ratio.

If the viewport aspect ratio is keep unchanged, ViewPortManager will ensure the vertical and horizontal directions zoom by the same ratio.

Arguments

ArgumentDefaultDescription
b(Mandatory)A true value ensures the vertical and horizontal directions zoom by the same ratio. A false value allows them to zoom independently.

Return Value

None