Back to Content

ImageDecoder: complete property

files/en-us/web/api/imagedecoder/complete/index.md

latest511 B
Original Source

{{securecontext_header}}{{APIRef("WebCodecs API")}}{{AvailableInWorkers("window_and_dedicated")}}

The complete read-only property of the {{domxref("ImageDecoder")}} interface returns true if encoded data has completed buffering.

Value

A {{jsxref("boolean")}}, true if buffering is complete.

Examples

The following example prints the value of complete to the console.

js
console.log(imageDecoder.complete);

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}