GetImageXResolution Method
Description
Return the X-resolution of the specified image.
| ActiveX Edition | Plug-in Edition | Mac Edition |
|---|---|---|
| Since V8.0 | Since V8.0 | Since V8.0 |
Syntax
Long ObjectName. GetImageXResolution(Short sImageIndex)
Parameters
short sImageIndex: Specifies the index of image in buffer. The index is 0-based.
Return value
Long.
Returns the X-resolution of the specified image.
When an error occurs and IfThrowException property is TRUE, an exception will be thrown.
When FALSE is returned or an exception is thrown, check ErrorCode property and ErrorString property for error information.
Remarks
Dynamic Webcam processes the image according to the extension of the file name(specified in HTTPRemoteFile).
following types of image files are supported:
| Bitmap | *.bmp, *.dib |
| JPEG | *.JPG, *.JPEG, .*.JPE, *.JFIF |
| TIFF | *.TIF, *.TIFF |
| PNG | *.PNG |
See also
GetImageYResolution() method
Sample
A JavaScript sample is provided.
<script language="javascript">
function btnGetImageXResolution_onclick() {
XResolution = Webcam.GetImageXResolution(0);
alert(XResolution);
}
</script>
Copyright © 2012 Dynamsoft Corporation.All Rights Reserved.
