Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C#4.0
i have the following code of a simple function , having no error, but does not show any message..
any one can help ?? please
public  void runPlayer()
           double  totalframe;
           double currentframe;
           cap = new Capture(openFileDialog1.FileName);
           totalframe = cap.GetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_FRAME_COUNT);
           currentframe = cap.GetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_POS_FRAMES);
           while (currentframe <= totalframe )
               if (playerImage.InvokeRequired)
                   Bitmap img = new Bitmap(cap.RetrieveBgrFrame().ToBitmap());
                   //img  = cap.RetrieveBgrFrame().ToBitmap();
                   this.playerImage.Image = img;

Posted 29-May-13 7:40am
Sergey Alexandrovich Kryukov at 29-May-13 12:50pm
Not enough information. What's your application type, UI library you use?
Sergey Alexandrovich Kryukov at 29-May-13 14:23pm
OK, and what message do you expect and why?
ryanb31 at 29-May-13 17:54pm
When you debug the code, where is it going wrong?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Advertise | Privacy | Mobile
Web04 | 2.8.150327.1 | Last Updated 29 May 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100