VintaSoft Imaging .NET SDK 15.1: Documentation for Web developer
Vintasoft.Imaging.ImageProcessing Namespace / WebGetImageColorDepthCommandJS type / set_DetectGrayscale Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
set_DetectGrayscale Method
In This Topic
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