Error CS1061 Image<Bgr,byte>

  • Thread starter Thread starter zack79
  • Start date Start date
Z

zack79

Guest
private void exitToolStripMenuItem_Click(object sender, EventArgs e)
{
try
{
OpenFileDialog dialog = new OpenFileDialog();
if (dialog.ShowDialog() == DialogResult.OK)
{
var img = new Image<Bgr, byte>(dialog.FileName);
AddImage(img, "Input");
pictureBox1.Image = img.AsBitmap();

Error CS1061 'Image<Bgr, byte>' does not contain a definition for 'AsBitmap' and no accessible extension method 'AsBitmap' accepting a first argument of type 'Image<Bgr, byte>' could be found (are you missing a using directive or an assembly reference?) EmguCvDemo C:\Users\Zaim\source\repos\EmguCvDemo\EmguCvDemo\Form1.cs 38 Active

I already installed Emgu.CV.runtime.windows

Continue reading...
 
Back
Top