• Converts the given sRGB image data to linear color space.

    Parameters

    • image: ImageBitmap | HTMLImageElement | HTMLCanvasElement

    Returns HTMLCanvasElement

  • Converts the given sRGB image data to linear color space.

    Parameters

    • image: ImageData

    Returns {
        data: ImageData["data"];
        height: ImageData["height"];
        width: ImageData["width"];
    }

    • data: ImageData["data"]
    • height: ImageData["height"]
    • width: ImageData["width"]