javascript ImageData typed array read whole pixel?

前端 未结 2 2206
醉话见心
醉话见心 2021-02-14 05:29

So there is are a lot of examples on how to write an entire pixel from a Uint32Array view of the ImageData object. But is it possible to read an entire pixel without in

2条回答
  •  误落风尘
    2021-02-14 05:54

    the buffer length is increased four times because of the retina display, you have to write pixelDensity(1); to avoid this

提交回复
热议问题