canvas-getImageData行列遍历求r索引位置的公式

index=(y*width+x)*4

原文地址:https://www.cnblogs.com/larrywang/p/14667713.html