getHeight() method

If an OzCamera object is added to the program, this method can run on it. It is used to get the height of the video stream in pixels.

Returns

height : Type: number. The height of the camera display in pixels.

Method usage example

In this example we will change the height of the video stream to 240 if it is bigger then 240 (Code example 1).

//constructor of the myCam object, the default camera is used
var myCam = OzCamera.getCameraByName(); 

if(myCam.getHeight()>240) //if height is bigger then 240 pixels
	myCam.setMode(myCam.getWidth(), 240, myCam.getFps()); //sets height to 240 pixels
	
Code example 1 - getHeight() method example