Share

AcGsView::setViewport

C++

virtual void setViewport(
    const AcGePoint2d & lowerLeft, 
    const AcGePoint2d & upperRight
) = 0;

Description

This method sets the extents of the viewport in normalized device coordinates. A value of 0.0 corresponds to the owning device's lower left corner; a value of 1.0 corresponds to the owning device's upper right corner. The viewport must have positive width and height. However, it is acceptable for a viewport to not be partly or wholly within the owning device's extents.

Parameters

Parameters Description
lowerLeft Lower left corner of the view in normalized device coordinates
upperRight Upper right corner of the view in normalized device coordinates

Links

AcGsView Class

Was this information helpful?