コード例 #1
0
        private void btnLoad_Click(object sender, EventArgs e)
        {
            //Call classes needed
            this.pictureIO = new PictureIO();
            this.edge      = new Edge();

            originalBitmap = pictureIO.openPicture();

            previewBitmap = originalBitmap;

            //Size in the picture box
            previewBitmap = edge.CopyToSquareCanvas(previewBitmap, pictureBox1.Width);

            //Put the picture in the picture box
            pictureBox1.Image = previewBitmap;


            ApplyFilter();
        }