public TestPic() { InitializeComponent(); pixelSize = 5; pic = new Cat2Gen(); picGrid = new PicGenGrid(pic, pixelSize); this.Content = picGrid; this.MouseLeftButtonDown += this.mouseOnWhichPixel; this.Show(); }
public PicGenGrid(PicGen pic, double size) { initializeGrid(pic.xNum, pic.yNum, size, 0); brushesMatrix = pic.getPicMatrix(); setContent(); }