Click here to Skip to main content
15,905,508 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have the following code of a simple function , having no error, but does not show any message..
any one can help ?? please
C#
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;
                   playerImage.Show();
                   currentframe++;
                   CvInvoke.cvWaitKey(33);
               }
           }


       }
Posted
Comments
Sergey Alexandrovich Kryukov 29-May-13 12:50pm    
Not enough information. What's your application type, UI library you use?
—SA
Sergey Alexandrovich Kryukov 29-May-13 14:23pm    
OK, and what message do you expect and why?
—SA
ZurdoDev 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900