public void ContraRotate()//逆时针旋转 { for (int i = 0; i < runBlock.Length; i++) { int x = runBlock.XPos - runBlock[i].Y; int y = runBlock.YPos - runBlock[i].X; if (x < 0 || x > _width - 1) { return; } if (y < 0 || y > _heihgt - 1) { return; } } runBlock.erase(gpPalette); runBlock.ContraRotate(); runBlock.Paint(gpPalette); }