예제 #1
0
파일: Board.cs 프로젝트: hcesar/Chess
 public void Draw(Graphics graphics, Square square, bool monochrome = false)
 {
     var rect = square.GetRectangle();
     if (monochrome)
         graphics.DrawImageUnscaled(Grayscale(Images.GetSquareImage(square, this[square])), rect);
     else
         graphics.DrawImageUnscaled(Images.GetSquareImage(square, this[square]), rect);
 }