VintaSoft Twain .NET SDK 15.0: Documentation for Web developer
Vintasoft.Twain Namespace / WebAcquiredImageJS type / changeContrast Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
    changeContrast Method
    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(
    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.
    : 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
    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 contrast of image. If you want to use asynchronous request instead of synchronous request, please use WebAcquiredImageJS.changeContrastAsync function.

    Browser Compatibility
    9
    See Also