The leading provider of version control solutions and TWAIN SDKs
  • Contact us









GetResolutionForCamByIndex Method

Description

Return the resolution of the camera by a specified index in the buffer.

ActiveX Edition Plug-in Edition Mac Edition
Since V8.0 Since V8.0 Not Supported

Syntax

String ObjectName.GetResolutionForCamByIndex(Long Index)

Parameters

Long Index: Specifies the index of camera  resolution in buffer. The index is 0-based.

Return value

String.

The result resolution.

Remarks

This method is proveded for getting the resolution of the camera. Before setting the index , check the ResolutionForCamListCount property to get the total resolution count in the list and make sure your index is meaningful and correct.

See Also

SelectResolutionForCamByIndex() method, ResolutionForCam property, ResolutionForCamListCount property

Sample

A JavaScript sample is provided.

<script language="javascript">

	function btnGetResolutionForCamByIndex_onclick() {
		
            listnum = Webcam.ResolutionForCamListCount;
            alert(listnum);
            resolution = Webcam.GetResolutionForCamByIndex(listnum-1); 
            alert(resolution);

	}

</script>