In This Topic
Changes contrast of image.
Syntax
var instance = new Vintasoft.Twain.WebAcquiredImageJS(twainDeviceManager, imageId, imageInfo);
var value; // Type: any
// Parameters
var contrastValue; // Type: number
value = instance.changeContrast(contrastValue);
function changeContrast(
: number
) : any;
Parameters
- contrastValue
- The contrast value in percents. Valid values are from -100 to 100. Default value is 0. Contrast is not changed if value of this property is set to 0.
Exceptions
Exception | Description |
| Thrown if argument has wrong type OR image is in processing now OR image processing is failed. |
Remarks
This function sends a synchronous request to change contrast of image. If you want to use asynchronous request instead of synchronous request, please use WebAcquiredImageJS.changeContrastAsync function.
Browser Compatibility
See Also