Esempio n. 1
0
 public Canvas(int w, int h)
 {
     this.w    = w;
     this.h    = h;
     sourceBmp = new MyPixel[w, h];
     bmp       = new Bitmap(w, h);
 }
Esempio n. 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];
 }