Share

setViewport Method

Overload List

Method Description
AcGsView::setViewport (AcGePoint2d &, AcGePoint2d &) 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.
AcGsView::setViewport (AcGsDCRect &) This method sets the extents of the viewport in device coordinates (pixels). 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.

Was this information helpful?