ForRenderingByWidthAndHeight
CadOptions.ForRenderingByWidthAndHeight method
Initializes an instance of the CadOptions class for rendering by width and height.
public static CadOptions ForRenderingByWidthAndHeight(int width, int height)
| Parameter | Type | Description |
|---|---|---|
| width | Int32 | The width of the output result (in pixels). |
| height | Int32 | The height of the output result (in pixels). |
Return Value
New instance of CadOptions class for rendering by width and height.
Exceptions
| exception | condition |
|---|---|
| ArgumentException | Thrown when width is less or equal to zero. |
| ArgumentException | Thrown when height is less or equal to zero. |
Remarks
For code example, see the documentation.
See Also
- class CadOptions
- namespace GroupDocs.Viewer.Options
- assembly GroupDocs.Viewer