CODViewport::ZoomIn

Zoom in on the diagram.

Defined in: OdViewport.cpp

Syntax

void CODViewport::ZoomIn(const CRect& rcZoom)

void CODViewport::ZoomIn(CPoint ptDev)

Return Value

void.

Parameters

rcZoom

Rectangle to zoom in on in container units.

ptDev

Device point that will become the center point of the viewport after scaling.

Comments

In order to maintain a constant aspect ratio, the X and Y ratios of the rectangle to the current logical extents are calculated and the smallest ratio is applied to both axes.