コード例 #1
0
        public TestPic()
        {
            InitializeComponent();

            pixelSize = 5;

            pic     = new Cat2Gen();
            picGrid = new PicGenGrid(pic, pixelSize);

            this.Content = picGrid;

            this.MouseLeftButtonDown += this.mouseOnWhichPixel;

            this.Show();
        }
コード例 #2
0
 public PicGenGrid(PicGen pic, double size)
 {
     initializeGrid(pic.xNum, pic.yNum, size, 0);
     brushesMatrix = pic.getPicMatrix();
     setContent();
 }