VintaSoft Twain .NET SDK 15.4: Documentation for Web developer
Vintasoft.Twain Namespace / WebAcquiredImageJS type / changeBrightness Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
changeBrightness Method
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);

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
ExceptionDescription
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
9
See Also