Gleam - v1.0.2
    Preparing search index...

    Function applyFilterOnCanvas

    • Apply a CSS filter string to an image and return the result as a new canvas.

      Parameters

      • image: HTMLCanvasElement | HTMLImageElement
      • filter: string
      • width: number = image.width

        default image.width

      • height: number = image.height

        default image.height

      Returns HTMLCanvasElement