예제 #1
0
 public void SetPixel(int x, int y, CanvasColor color)
 {
     // Return if outside of Matrix
     if (OutsideCanvas(x, y))
     {
         return;
     }
     this.pixelMap[x, y] = color;
 }
예제 #2
0
 public void Fill(CanvasColor color)
 {
     for (var x = 0; x < Width; x++)
     {
         for (var y = 0; y < Height; y++)
         {
             SetPixel(x, y, color);
         }
     }
 }