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