Example #1
0
 public static void SetCellStatus(this DirectBitmap bitmap, int x, int y, SpaceBoard.CellState state) => bitmap.SetPixel(x, y, Color.FromArgb(EnumToColor[state]));
Example #2
0
 public static SpaceBoard.CellState GetCellStatus(this DirectBitmap bitmap, int x, int y)
 {
     return(ColorToEnum[bitmap.GetPixel(x, y).ToArgb()]);
 }