예제 #1
0
        public static BillBoardSelector create(String img_name)
        {
            BillBoardSelector bbs = new BillBoardSelector();

            bbs.img_file_name    = img_name;
            bbs.img              = Bitmap.FromFile(img_name);
            bbs.pictureBox1.Size = bbs.img.Size;
            return(bbs);
        }
예제 #2
0
파일: Form1.cs 프로젝트: wonderhorn/mkfj
        private void ビルボード選択ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                String file_name = ofd.FileName;
                bbs = BillBoardSelector.create(file_name);
                bbs.Show(this);
            }
        }