This method of the Direct3dRMViewport Class retrieves the height (measured in pixels) of the viewport.
public int getHeight();
Returns the height of the viewport (in pixels).