PictureBox control which supports IplImage
Inheritance: System.Windows.Forms.PictureBox
コード例 #1
0
        public PictureBoxIplSample()
        {
            using (IplImage img = new IplImage(Const.ImageFruits, LoadMode.Color))
            {
                using (Form form = new Form() { ClientSize = new Size(img.Width, img.Height), Text = "PictureBoxIpl Sample" })  
                using (PictureBoxIpl pbi = new PictureBoxIpl())
                {
                    pbi.ImageIpl = img;
                    pbi.ClientSize = form.ClientSize;
                    form.Controls.Add(pbi);

                    Application.Run(form);
                }
            }

        }
コード例 #2
0
 private void FrmMain_Load(object sender, System.EventArgs e)
 {
     _pictureBoxIpl1 = new PictureBoxIpl
     {
         AutoSize = true
     };
     flowLayoutPanel1.Controls.Add(_pictureBoxIpl1);
 }