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); } } }
private void FrmMain_Load(object sender, System.EventArgs e) { _pictureBoxIpl1 = new PictureBoxIpl { AutoSize = true }; flowLayoutPanel1.Controls.Add(_pictureBoxIpl1); }