VintaSoft Imaging .NET SDK 14.0: Documentation for Web developer
Vintasoft.Imaging.ImageProcessing Namespace / WebGetImageColorDepthCommandJS type / set_DetectGrayscale Property
Syntax Exceptions BrowserCompatibility SeeAlso
    set_DetectGrayscale Method
    Sets a value indicating whether to check that an image is a grayscale image.
    Syntax
    var instance = new Vintasoft.Imaging.ImageProcessing.WebGetImageColorDepthCommandJS();
    
    var returnValue; // Type: any
    
    // Parameters
    var value; // Type: boolean
    
    returnValue = instance.set_DetectGrayscale(value);
    
    

    Parameters

    value
    True - command must check that an image is a grayscale image; False - command must NOT check that an image is a grayscale image. Default value is True.
    Exceptions
    ExceptionDescription
    Thrown if argument has wrong type.
    Browser Compatibility
    56+
    45+
    11
    See Also