• Download a image (must be a data url).

    Parameters

    • dataUrl: string

      The data url of the image

    • filename: string

      The filename of the image

    Returns void

    Example

    const dataUrl = screenshot();
    saveImage(dataUrl, "screenshot.png");

Generated using TypeDoc