CODViewport::GetAspectRatio

CSize CODViewport::GetAspectRatio(void)

Determines the aspect ratio of the viewport. This will always be a one to one ratio unless the viewport has an anisotropic mapping mode. Even then, the ratio of logical to physical extents of the viewport must be different to produce anything but a one to one aspect ratio.

Defined in: OdViewport.cpp

Return Value

A CSize object representing the aspect ratio.

Comments

This method is exists so that the aspect ratio can be taken into account during rotation operations. If you do not want the aspect ratio to effect the rotation of components when using the MM_ANISOTROPIC mapping mode, override this method and have it always return a CSize object with values of {1,1}.