Interface GreyOptions

interface GreyOptions {
    algorithm?: GreyAlgorithm | GreyAlgorithmCallback;
    keepAlpha?: boolean;
    mergeAlpha?: boolean;
    out?: Image;
}

Properties

Specify the grey algorithm to use.

Default

'luma709'

keepAlpha?: boolean

Specify wether to keep an alpha channel in the new image or not.

Default

false

mergeAlpha?: boolean

Specify wether to merge the alpha channel with the gray pixel or not.

Default

true

out?: Image

Image to which to output.