Interface IExtract

interface IExtract {
    base64(
        target?: DisplayObject | RenderTexture,
        format?: string,
        quality?: number,
        frame?: Rectangle,
    ): Promise<string>;
    canvas(target?: DisplayObject | RenderTexture, frame?: Rectangle): ICanvas;
    image(
        target?: DisplayObject | RenderTexture,
        format?: string,
        quality?: number,
        frame?: Rectangle,
    ): Promise<HTMLImageElement>;
    pixels(
        target?: DisplayObject | RenderTexture,
        frame?: Rectangle,
    ): Uint8Array | Uint8ClampedArray;
}

Implemented by

Methods

  • Parameters

    Returns Promise<string>

  • Parameters

    Returns Promise<HTMLImageElement>