Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I am having a problem with my picture box i am getting stream from web cam displaying it in my picturebox, now when i call picturebox.refres() it works fine but it does not execute the code after refresh method instead it goes to the top of that function.If i dont call the refresh method it shows the first frame and then big red X with white background.The following code is in the eventhandler which gives new frames to bitmap.
C#
currFrame = bitmap1;
bitmap1 = eventArgs.Frame;
copy = bitmap1;
Difference filter = new Difference(currFrame);
    // apply the filter
Bitmap resultImage = filter.Apply(copy);

pictureBox4.Image = resultImage;
pictureBox4.Refresh();
    //It works fine but it will not execute the code below refresh method
Posted

1 solution

 
Share this answer
 

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