Function blurImage

  • Blurs the given ImageData in-place, blurring each of the RGBA layers independently by applying an horizontal blur of radius rx and a vertical blur of radius ry (which defaults to rx). Returns the blurred ImageData.

    Parameters

    • imageData: ImageData
    • rx: number
    • Optional ry: number

    Returns ImageData