gui.getDisplayLayoutSize

Returns the current resolution and aspect ratio of a (3d) display layout.

Prototype

  1. nRatio, nMaxWidth, nMaxHeight = gui.getDisplayLayoutSize ( hLayout )

Parameters

hLayout - valid layout handle


Return values

nRatio - ratio number
nMaxWidth - width in px
nMaxHeight - height in px


Sample

  1. local nRatio, nWidth, nHeight = gui.getDisplayLayoutSize ( gui.getComponentFromView ( hView, "RenderViewLayout" ))

Available since ShiVa 2.0