HTML Canvas does not return ImageData as Uint8ClampedArray

Fixed Issue #106289

Details

Created
Apr 27, 2014
Privacy
This issue is public.
Found in build #
0.0011
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

URL =

URL:

Repro Steps:

var canvas = …;
var ctx = canvas.getContext(‘2d’);
var id = ctx.createImageData(100, 100);
id.data; // Array instead of a Uint8ClampedArray
new Uint8Array(id.data.buffer); // fails, because not a typed array

Expected Results:

The ImageData data property should be a Uint8ClampedArray so that it can be used with all the goodness and performance of Typed Arrays. Currently it is an Array and as such is significantly slower than other browser that conform to the latest W3C spec.

Actual Results:

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Taylor W.”

      Changed Status to “Fixed”

    You need to sign in to your Microsoft account to add a comment.

    Sign in