ImageJS
    Preparing search index...

    Function grey

    • Convert the current image to grayscale. The source image has to be RGB or RGBA. If there is an alpha channel you have to specify what to do:

      • keepAlpha : keep the alpha channel, you will get a GREYA image.
      • mergeAlpha : multiply each pixel of the image by the alpha, you will get a GREY image.

      Parameters

      • image: Image

        Original color image to convert to grey.

      • options: GreyOptions = {}

        The grey conversion options.

      Returns Image

      The resulting grey image.