In This Topic
Changes brightness of image.
Syntax
var instance = new Vintasoft.Twain.WebAcquiredImageJS(twainDeviceManager, imageId, imageInfo);
var value; // Type: any
// Parameters
var brightnessValue; // Type: number
value = instance.changeBrightness(brightnessValue);
function changeBrightness(
: number
) : any;
Parameters
- brightnessValue
- The brightness value in percents. Valid values are from -100 to 100. Default value is 0. Brightness 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 brightness of image. If you want to use asynchronous request instead of synchronous request, please use WebAcquiredImageJS.changeBrightnessAsync function.
Browser Compatibility
See Also