API Reference > OdDb Classes > OdDbViewport Class > OdDbViewport Methods > OdDbViewport::setWidth Method
OdDbViewport::setWidth Method
Syntax
C++
void setWidth(double width);
Parameters 
Description 
double width 
[in] Width. 

Sets the width of this Viewport object (DXF 40).

If this Viewport object is an overall viewport, the values returned by width() and height() must be divided by a factor of 1.058, and the parameters of setWidth and setHeight() must be multiplied by a like factor.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.