Example #1
0
 public Canvas(int w, int h)
 {
     this.w    = w;
     this.h    = h;
     sourceBmp = new MyPixel[w, h];
     bmp       = new Bitmap(w, h);
 }
Example #2
0
 public Canvas(int w, int h)
 {
     this.w    = w;
     this.h    = h;
     sourceBmp = new MyPixel[h][];
     for (int y = 0; y < h; y++)
     {
         sourceBmp[y] = new MyPixel[w];
     }
     sourceChange = new bool[h];
     bmp          = new Bitmap(w, h);
     line         = new Color[w];
 }