每次看到 p(0) = XXXXXXXXXXXXtPixel((x - 1), (y - 1)).R
p(1) = XXXXXXXXXXXXtPixel(x, (y - 1)).R
p(2) = XXXXXXXXXXXXtPixel((x + 1), (y - 1)).R
p(3) = XXXXXXXXXXXXtPixel((x - 1), y).R
p(4) = XXXXXXXXXXXXtPixel(x, y).R
p(5) = XXXXXXXXXXXXtPixel((x + 1), y).R
p(6) = XXXXXXXXXXXXtPixel((x - 1), (y + 1)).R
p(7) = XXXXXXXXXXXXtPixel(x, (y + 1)).R
p(8) = XXXXXXXXXXXXtPixel((x + 1), (y + 1)).R
这样一堆的时候大家是否想过:怎么样能把这种源码再重构简化一些?