VintaSoft Imaging .NET SDK 15.1: Documentation for Web developer
Vintasoft.Imaging.ImageProcessing Namespace / WebChangePixelFormatToGrayscaleCommandJS type / set_PixelFormat Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
set_PixelFormat Method
In This Topic
Sets the destination pixel format.
Syntax
var instance = new Vintasoft.Imaging.ImageProcessing.WebChangePixelFormatToGrayscaleCommandJS();

var returnValue; // Type: any

// Parameters
var value; // Type: WebPixelFormatEnumJS

returnValue = instance.set_PixelFormat(value);

Parameters

value
An instance of WebPixelFormatEnumJS class. Default value is "Gray8".
Exceptions
ExceptionDescription
Thrown if argument has wrong type.
Thrown if argument value is not "Gray8" and not "Gray16".
Browser Compatibility
56+
45+
11
See Also