Remove copybuff
amis-shokoohi opened this issue · 0 comments
amis-shokoohi commented
Line 178 in 6971ccd
It is possible to copy
c.image.Pix
( []uint8
) to
c.imgData.Get("data")
( Uint8ClampedArray
) in one shot:
js.CopyBytesToJs(c.imgData.Get("data"), c.image.Pix)
So c.copybuff
is not needed anymore.