API

Variable EncodeImageAsyncConst

EncodeImageAsync: {} = EncodingHelper.EncodeImageAsync

Encodes pixel data to an image

Type Declaration

    8-bit RGBA pixel data

    the width of the image

    the height of the image

    the requested MIME type

    true to invert the image in the Y direction

    the quality of the image if lossy mimeType is used (e.g. image/jpeg, image/webp). See HTMLCanvasElement.toBlob()'s quality parameter.

    a promise that resolves to the encoded image data. Note that the blob.type may differ from mimeType if it was not supported.