I am trying to manipulate pixels on a html5 canvas. With the method getImageData I only get a Uint8Array with RGBA values of the canvas.
Is there a possibility to get array with more precision? I would like to manipulate all 16bit color values of the picture.
I am trying to manipulate pixels on a html5 canvas. With the method getImageData
Share
No, since the color space of a canvas context must match the color space of the CSS color values:
Also the current specification of
ImageDataprovides only a 8bit array:References